Properties of the ASP ASPError object
ASPCode
The ASPCode attribute returns the error code generated by IIS.
ASPDescription
The ASPDescription attribute returns a detailed description of the error.
Category
The Category attribute returns the source of the error (was the error generated by IIS, the scripting language, or a component?).
Column
The Column attribute returns the column position in the ASP file where the error occurred.
Description
The Description attribute returns a brief description of the error.
File
The File attribute returns the name of the ASP file where the error occurred.
Line
The Line attribute returns the line position in the ASP file where the error occurred.
Number
The Number attribute returns the standard COM error code for the error.
Source
The Source attribute returns the actual source code where the error occurred.
syntax
ASPError.ASPCode() ASPError.ASPDescription() ASPError.Category() ASPError.Column() ASPError.Description() ASPError.File() ASPError.Line() ASPError.Number() ASPError.Source()
instance
<% dim objErr set objErr=Server.GetLastError() response.write("ASPCode=" & objErr.ASPCode) response.write("<br />") response.write("ASPDescription=" & objErr.ASPDescription) response.write("<br />") response.write("Category=" & objErr.Category) response.write("<br />") response.write("Column=" & objErr.Column) response.write("<br />") response.write("Description=" & objErr.Description) response.write("<br />") response.write("File=" & objErr.File) response.write("<br />") response.write("Line=" & objErr.Line) response.write("<br />") response.write("Αριθμός=" & objErr.Number) response.write("<br />") response.write("Πηγή=" & objErr.Source) %>