Objeto ASP ASPError
O objeto ASPError exibe informações sobre erros em scripts.
O objeto ASPError
O objeto ASPError foi implementado no ASP 3.0 e está disponível no IIS5 e posterior.
O objeto ASPError é usado para exibir informações detalhadas de qualquer erro que ocorra em scripts em uma página ASP.
Observação: o objeto ASPError é criado quando Server.GetLastError é chamado, portanto, as informações de erro só podem ser acessadas usando o método Server.GetLastError.
As propriedades do objeto ASPError estão descritas abaixo (todas as propriedades são somente leitura):
Propriedades
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 |