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

Posted on    March-28-2011 9:00 AM

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

Amit Singh

Total Post:565

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:
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.
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