YouTip LogoYouTip

Prop Asperrorobject

# ASP ASPError Object Properties * * Complete ASPError Object Reference](#) * * * ### ASPCode The ASPCode property returns the error code generated by IIS. ### ASPDescription The ASPDescription property returns a detailed description of the error. ### Category The Category property returns the source of the error (whether the error was generated by IIS, the scripting language, or a component). ### Column The Column property returns the column position in the ASP file where the error occurred. ### Description The Description property returns a brief description of the error. ### File The File property returns the name of the ASP file where the error occurred. ### Line The Line property returns the line position in the ASP file where the error occurred. ### Number The Number property returns the standard COM error code for the error. ### Source The Source property returns the actual source code of the line where the error occurred. ### Syntax ASPError.ASPCode() ASPError.ASPDescription() ASPError.Category() ASPError.Column() ASPError.Description() ASPError.File() ASPError.Line() ASPError.Number() ASPError.Source() ### Example <% dim objErr set objErr=Server.GetLastError() response.write("ASPCode=" & objErr.ASPCode) response.write("
") response.write("ASPDescription=" & objErr.ASPDescription) response.write("
") response.write("Category=" & objErr.Category) response.write("
") response.write("Column=" & objErr.Column) response.write("
") response.write("Description=" & objErr.Description) response.write("
") response.write("File=" & objErr.File) response.write("
") response.write("Line=" & objErr.Line) response.write("
") response.write("Number=" & objErr.Number) response.write("
") response.write("Source=" & objErr.Source) %> * * Complete ASPError Object Reference](#)
← Prop DrivesMet Urlencode β†’