Объект ASP ASPError
Объект 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 |