From http://www.w3schools.com (Copyright Refsnes Data)
Complete ASPError Object Reference
The ASPCode property returns an error code generated by IIS.
The ASPDescription property returns a detailed description of the error.
The Category property returns the source of the error (Was the error generated by IIS? A scripting language? Or a component?).
The Column property returns the column position within the ASP file that generated the error.
The Description property returns a short description of the error.
The File property returns the name of the ASP file that generated the error.
The Line property returns the number of the line within the ASP file that generated the error.
The Number property returns the standard COM error code for the error.
The Source property returns the actual source code of the line where the error occurred.
|
ASPError.ASPCode() ASPError.ASPDescription() ASPError.Category() ASPError.Column() ASPError.Description() ASPError.File() ASPError.Line() ASPError.Number() ASPError.Source() |
|
<% 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("Number=" & objErr.Number) response.write("<br />") response.write("Source=" & objErr.Source) %> |
Complete ASPError Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)