ASPError obiektu _
Obiekt ASPError wyświetla informacje o błędach w skryptach.
Obiekt ASPError
Obiekt ASPError został zaimplementowany w ASP 3.0 i jest dostępny w IIS5 i nowszych.
Obiekt ASPError służy do wyświetlania szczegółowych informacji o wszelkich błędach występujących w skryptach na stronie ASP.
Uwaga: Obiekt ASPError jest tworzony po wywołaniu Server.GetLastError, więc do informacji o błędzie można uzyskać dostęp tylko przy użyciu metody Server.GetLastError.
Poniżej opisano właściwości obiektu ASPError (wszystkie właściwości są tylko do odczytu):
Nieruchomości
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 |