Initializes a new instance of the Exception class with its message set as specified.
[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 );
Exception Type | Condition |
---|---|
Exception.InnerException | null |
Exception.Message | message. |
All derived classes should provide a constructor with a parameters list identical to the constructor's list.
Exception Class | Exception Members | System Namespace | Exception Constructor Overload List