asp.net.ph

Exception Constructor ( String )

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
);

Parameters

message
The message that describes the error.

Remarks

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.

See Also

Exception Members   Exception Constructor Overload List Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note