ExceptionMethods |
Name | Description |
---|---|
Catch | Catch provides a mechanism for retrieving an exception object that was set using the Throw function. |
CatchArgument | |
CatchArgumentNull | |
CatchArgumentOutOfRange | |
CatchDirectoryNotFound | |
CatchFileNotFound | |
CatchPathTooLong | |
ClearException | Clears any exception that may not have been caught yet. |
PeekException | |
TakeException | |
Throw | Raises an error using the supplied exception object. The exception is then set and ready to be caught using Catch. |
Error processing can be a fundamental process in creating robust applications in Visual Basic. VBCorLib provides a wide range of exception classes that can be used to capture details for an error that may occur.
By using Throw and Catch to handle exception objects, a robust error handling mechanism can be created.