ASP ASPERrorobject _


Het ASPError-object geeft informatie weer over fouten in scripts.


Het ASPERror-object

Het ASPError-object is geïmplementeerd in ASP 3.0 en is beschikbaar in IIS5 en hoger.

Het ASPError-object wordt gebruikt om gedetailleerde informatie weer te geven over fouten die optreden in scripts op een ASP-pagina.

Opmerking: het ASPError-object wordt gemaakt wanneer Server.GetLastError wordt aangeroepen, dus de foutinformatie is alleen toegankelijk met de methode Server.GetLastError.

De eigenschappen van het ASPError-object worden hieronder beschreven (alle eigenschappen zijn alleen-lezen):

Eigenschappen

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