System Namespace Exception Class
Initializes a new instance of the Exception class with a specified error message.
[ Visual Basic ]
Overloads Public Sub New ( _
ByVal message As String _
)
[ C# ]
public Exception (
string message
);
[ C++ ]
public: Exception (
String* message
);
[ JScript ]
public function Exception (
message : String
);
- message
- The message that describes the error.
This constructor initializes the Message property of the new instance using the message parameter.
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 |
The error message string. |
Exception Members Exception Constructor Overload List