Objeto ASP ASPError
El objeto ASPError muestra información sobre errores en scripts.
El objeto ASPError
El objeto ASPError se implementó en ASP 3.0 y está disponible en IIS5 y versiones posteriores.
El objeto ASPError se utiliza para mostrar información detallada de cualquier error que ocurra en los scripts de una página ASP.
Nota: El objeto ASPError se crea cuando se llama a Server.GetLastError, por lo que solo se puede acceder a la información del error mediante el método Server.GetLastError.
Las propiedades del objeto ASPError se describen a continuación (todas las propiedades son de solo lectura):
Propiedades
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 |