Oggetto ASP ASPError


L'oggetto ASPError visualizza informazioni sugli errori negli script.


L'oggetto ASPError

L'oggetto ASPError è stato implementato in ASP 3.0 ed è disponibile in IIS5 e versioni successive.

L'oggetto ASPError viene utilizzato per visualizzare informazioni dettagliate su qualsiasi errore che si verifica negli script in una pagina ASP.

Nota: l'oggetto ASPError viene creato quando viene chiamato Server.GetLastError, quindi è possibile accedere alle informazioni sull'errore solo utilizzando il metodo Server.GetLastError.

Le proprietà dell'oggetto ASPError sono descritte di seguito (tutte le proprietà sono di sola lettura):

Proprietà

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