एएसपी एएसपीएरर ऑब्जेक्ट
ASPError ऑब्जेक्ट स्क्रिप्ट में त्रुटियों के बारे में जानकारी प्रदर्शित करता है।
ASPError वस्तु
ASPError ऑब्जेक्ट ASP 3.0 में लागू किया गया था और IIS5 और बाद में उपलब्ध है।
ASPError ऑब्जेक्ट का उपयोग किसी ASP पृष्ठ में स्क्रिप्ट में होने वाली किसी भी त्रुटि की विस्तृत जानकारी प्रदर्शित करने के लिए किया जाता है।
नोट: ASPError ऑब्जेक्ट तब बनाया जाता है जब Server.GetLastError को कॉल किया जाता है, इसलिए त्रुटि जानकारी को केवल Server.GetLastError विधि का उपयोग करके एक्सेस किया जा सकता है।
ASPError ऑब्जेक्ट के गुण नीचे वर्णित हैं (सभी गुण केवल-पढ़ने के लिए हैं):
गुण
Property | Description |
---|---|
ASPCode | Returns an error code generated by IIS |
ASPDescription | Returns a detailed description of the error (if the error is ASP-related) |
Category | Returns the source of the error (was the error generated by ASP? By a scripting language? By an object?) |
Column | Returns the column position within the file that generated the error |
Description | Returns a short description of the error |
File | Returns the name of the ASP file that generated the error |
Line | Returns the line number where the error was detected |
Number | Returns the standard COM error code for the error |
Source | Returns the actual source code of the line where the error occurred |