aspxtreme

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



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

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

You can help support aspxtreme