The Err Object

The Err object is used to obtain information about errors that have occurred during program execution. When a run-time error occurs, the generator of the error sets the properties of the Err object. These properties identify the error and allow you to handle it in your code. The Err object also has a Raise method that allows you to generate your own errors and set the properties of the Err object yourself when you know that something has gone wrong in your code.