Monday, August 22, 2011

[Research] Visual Basic - Exception Classes

The purpose of the Exception Class is to throw Exceptions (with specific error message) so that the user can understand what is going in. It also prevents code from executing if it is not suitable or otherwise unusable. It inherits directly from System.Object class.

The Exception class has 4 constructors, Exception(), Exception(String), Exception(SerializationInfo, StreamingContext), and Exception(String, Exception).

No comments:

Post a Comment