ASP Technology ASPError Object Properties

Source: Internet
Author: User
Tags error code

ASP Technology ASPError Object Properties

ASPCode
The ASPCode property returns an illegal immigrant generated by an error code.

ASPDescription
The ASPDescription property returns a detailed description error.

Category

The Category property returns the source of the error (IIS generated by an error in the original price)? A scripting language, or an integral part? ) 。

Column
This column property returns an ASP file for the position of the column, resulting in an error.

Desciption
Describes a short description error returned by a property.

File
The file property returns an error from the ASP file name.

Line
The line property returns an ASP file in the row, resulting in an error.

Number
Number property returns the error of the standard COM error code.

Resoure
Source property The actual rate of return of the source code of the line has been wrong.

Grammar

Asperror.aspcode ()
asperror.aspdescription ()
asperror.category ()
asperror.column
() Asperror.description ()
asperror.file () asperror.line () Asperror.number ()
Asperror.source ()
Take a look at a tutorial.
 
 <% 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= "& Amp 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)%> 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.