Objet ASP ASPError


L'objet ASPError affiche des informations sur les erreurs dans les scripts.


L'objet ASPError

L'objet ASPError a été implémenté dans ASP 3.0 et est disponible dans IIS5 et versions ultérieures.

L'objet ASPError est utilisé pour afficher des informations détaillées sur toute erreur qui se produit dans les scripts d'une page ASP.

Remarque : L'objet ASPError est créé lorsque Server.GetLastError est appelé, de sorte que les informations sur l'erreur ne sont accessibles qu'à l'aide de la méthode Server.GetLastError.

Les propriétés de l'objet ASPError sont décrites ci-dessous (toutes les propriétés sont en lecture seule) :

Propriétés

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