CustomException(String, Exception) Constructor
Initializes a new instance of the
Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.
Namespace: XMLCommentsExamples.DocumentationInheritanceAssembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2014.1.26.0
public CustomException(
string message,
Exception innerException
)
Public Sub New (
message As String,
innerException As Exception
)
public:
CustomException(
String^ message,
Exception^ innerException
)
new :
message : string *
innerException : Exception -> CustomException
Parameters
- message String
- The error message that explains the reason for the exception.
- innerException Exception
- The exception that is the cause of the current exception, or a null reference ( in Visual Basic) if no inner exception is specified.