Latest web development tutorials

ASP ASPError object attributes

ASPError Object Reference Complete ASPError Object Reference

ASPCode

ASPCode property returns an error code generated by IIS.

ASPDescription

ASPDescription property returns a detailed description of the error.

Category

Category property returns the source of the error (error is caused by IIS, scripting languages ​​or components produced?)

Column

Column property returns an error in an ASP file column position.

Description

Description property returns a brief description of the error.

File

File property returns the name of the error ASP files.

Line

Line property returns a false ASP file line position.

Number

Number property returns the wrong standard COM error code.

Source

Source property returns rows actual source code error.

grammar

ASPError.ASPCode()
ASPError.ASPDescription()
ASPError.Category()
ASPError.Column()
ASPError.Description()
ASPError.File()
ASPError.Line()
ASPError.Number()
ASPError.Source()

Examples

<%
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)
%>


ASPError Object Reference Complete ASPError Object Reference