Returns the fully qualified name of this exception and the message held by the Message property.
[Visual Basic] Overrides Public Function ToString() As String [C#] public override string ToString(); [C++] public: override String* ToString(); [JScript] public override function ToString() : String;
Returns the fully qualified class name and message.
The ToString method returns the "ClassName: message", where ClassName is the fully qualified class name and message is the exception's message string. If the message string is the empty string, then "ClassName" alone is returned.