ADO Error Object
Error Object
ADO အမှားအယွင်းအရာဝတ္တုတွင် လုပ်ဆောင်ချက်တစ်ခုတည်းအတွင်း ထုတ်ပေးခဲ့သော ဒေတာဝင်ရောက်ခွင့်ဆိုင်ရာ အမှားအယွင်းများအကြောင်း အသေးစိတ်အချက်အလက်များပါရှိသည်။
ADO သည် error တစ်ခုစီအတွက် Error object တစ်ခုထုတ်ပေးပါသည်။ အမှားအယွင်းအရာတစ်ခုစီတွင် တိကျသောအမှားအယွင်းအသေးစိတ်များပါရှိပြီး အမှားများစုစည်းမှုတွင် သိမ်းဆည်းထားသည်။ အမှားများကိုဝင်ရောက်ရန်၊ သင်သည် သီးခြားချိတ်ဆက်မှုတစ်ခုကို ကိုးကားရပါမည်။
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>")
next
%>
အထားအသို
objErr.property
သတ္တိ
Property | Description |
---|---|
Description | Returns an error description |
HelpContext | Returns the context ID of a topic in the Microsoft Windows help system |
HelpFile | Returns the full path of the help file in the Microsoft Windows help system |
NativeError | Returns an error code from the provider or the data source |
Number | Returns a unique number that identifies the error |
Source | Returns the name of the object or application that generated the error |
SQLState | Returns a 5-character SQL error code |