ASP ASPError Object Properties Last Updated : 31 Mar, 2021 Comments Improve Suggest changes Like Article Like Report ASP Code: The ASPCode is used for returning the string value which determines the error code that would be generated by the IIS server. This Property applies to Error Object. It is an inbuilt method of the Error object. Syntax: ASPError.ASPCode() ASPDescription: The ASPDescription is used to return a detailed description of an error. Syntax: ASPError.ASPDescription()ASP Category: The ASP Category Property is used to return the source of an error. Syntax: ASPError.Category()Column: The ASP Column property is used to the column position within the ASP file that generated the error. Syntax: ASPError.Column()Description: The ASP Description property is used to return a small description of an error. Syntax: ASPError.Description() File: The ASP File property is used to return the name of the ASP File which generates an error. Syntax: ASPError.File() Line: The ASP Line Property is used to return a line number in the ASP file which generates an error. Syntax: ASPError.Line()Number: The ASP Number Property is used to return the standard COM error code for the error. Syntax: ASPError.Number()Source: The ASP Source Property is used to return the actual source code of the line where the error occurred. Syntax: ASPError.Source() Example Code: Below code covers all the properties of an Error Object. ASP <% 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) %> Output: Comment More infoAdvertise with us Next Article ASP ASPError Object Properties M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Properties ASP-Basics Similar Reads ASP Request Object The ASP Request Object is used to retrieve the information from the client browser. The Request Object is used when the client wants to request for a particular page from the server. Â The Request Object has properties, methods, and collections that are given below Collections :Â Client Certificate: 2 min read ASP Attributes Property The ASP Attributes Property is used for returning or setting the attributes of the specified file or folder. The attributes are defined with the following numerical values: 0: Normal file1: Read-only file2: Hidden file4: System file6: Folder or directory32: The file has changed since the last backup 2 min read ASP Server CreateObject Method The ASP Server CreateObject Method is used to create an instance of a server object. The object created by this method has page scope. These objects are destroyed when the server finished the Current ASP page. We generally use the <object>tag in Global.asa file to create an object in the Sessi 1 min read ASP Server.GetLastError() Method (ASP 3.0) The ASP Server.GetLastError() Method is used to return an ASP Error Object which defines the error condition that occurs. Generally, A website uses a Default file \iishelp\common\500-100.asp to encounter an error in the ASP file. Or we can also create our own file. This method is available only befo 2 min read ASP Item Property The ASP Item Property is used to return or set the value of an item in the Dictionary Object. Syntax: DictionaryObject.Item(key)[=newitem] Parameter Values: key: It specifies the key that is associated with an item. It is a required attribute.newitem: It specifies the new item that has to be set for 1 min read Like