Custom Exception(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.
Definition
Namespace: XMLCommentsExamples.DocumentationInheritance
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public CustomException(
string message,
Exception innerException
)VB
Public Sub New (
message As String,
innerException As Exception
)C++
public:
CustomException(
String^ message,
Exception^ innerException
)F#
new :
message : string *
innerException : Exception -> CustomException