ایڈو ایرور آئیٹم
Error ਆਬਜੈਕਟ
ADO Error ਆਬਜੈਕਟ ਵਿੱਚ ਇੱਕ ਅਲੱਗ ਕੰਮ (ਪ੍ਰਦਾਤਾ ਨਾਲ ਸਬੰਧਤ) ਦੇ ਸਮੰਜਸ਼ਟੀ ਪਹੁੰਚ ਗਲਤੀਆਂ ਦੀ ਵਿਸਤ੍ਰਿਤ ਜਾਣਕਾਰੀ ਹੁੰਦੀ ਹੈ。
ADO ਹਰ ਗਲਤੀ ਲਈ ਇੱਕ Error ਆਬਜੈਕਟ ਪੈਦਾ ਕਰਦਾ ਹੈ। ਹਰ ਇਕ Error ਆਬਜੈਕਟ ਵਿੱਚ ਵਿਸ਼ੇਸ਼ ਗਲਤੀ ਦੀ ਵਿਸਤ੍ਰਿਤ ਜਾਣਕਾਰੀ ਹੁੰਦੀ ਹੈ ਅਤੇ Error ਆਬਜੈਕਟ Errors ਸਟੋਰੇਜ ਵਿੱਚ ਸਟੋਰ ਕੀਤੇ ਜਾਂਦੇ ਹਨ। ਇਹਨਾਂ ਗਲਤੀਆਂ ਤੱਕ ਪਹੁੰਚਣ ਲਈ ਕੋਈ ਵਿਸ਼ੇਸ਼ ਕੁਨੈਕਸ਼ਨ ਦੀ ਸ਼ਰਤ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ。
ਪ੍ਰਤੀਕਿਰਦੀ ਵਿੱਚ ਚੱਕਰ ਕਰੋ:
<% for each objErr in objConn.Errors response.write("<p>") response.write("Description:") response.write(objErr.Description & "<br />") response.write("Help context:") response.write(objErr.HelpContext & "<br />") response.write("Help file:") response.write(objErr.HelpFile & "<br />") response.write("Native error:") response.write(objErr.NativeError & "<br />") response.write("Error number:") response.write(objErr.Number & "<br />") response.write("Error source:") response.write(objErr.Source & "<br />") response.write("SQL state:") response.write(objErr.SQLState & "<br />") response.write("</p>") بعد %>
نکات
objErr.property