Home > DeveloperSection > Interviews > How does the ‘Err’ object look like ?

Posted on    March-28-2011 9:00 AM

 VB.Net VB.Net 
Ratings:
 1 Answer(s)
  1085  View(s)
Rate this:

Amit Singh

Total Post:565

Points:2825
Posted on    March-28-2011 12:00 AM

Error handling that evolve around the various On Error.. statements are referred to as unstructured error handling. The build in object Err is used in this type of error handling. This object has several properties and methods as listed below:
Properties: 
Description: a short description of the error
HelpContext: context ID for the help topic associated with the error
HelpFile: fully qualified file name if any
Number: Number associated with the error
Source: a string that specifies the object that generated the error.
Method:
Clear: Clears the set values of all properties of the error object.
Raise: Generates a runtime error and sets the properties of the Err object to the values supplied in the method call

Don't want to miss updates? Please click the below button!

Follow MindStick