System Namespace Exception Class
Initializes a new instance of the Exception class with default properties.
[ Visual Basic ]
Overloads Public Sub New ( )
[ C# ]
public Exception ( );
[ C++ ]
public: Exception ( );
[ JScript ]
public function Exception ( );
This constructor initializes the Message property of the new instance to a system-supplied message that describes the error and takes into account the current system culture.
All the derived classes should provide this default constructor. Note that the stack trace is not started until the exception is thrown.
The following table shows the initial property values for an instance of Exception.
Property |
Value |
InnerException |
Occurs when A null reference ( in Visual Basic Nothing ). |
Message |
A system-supplied localized description. |
Exception Members Exception Constructor Overload List