Custom Exception(String) Constructor
Initializes a new instance of the Exception class with a specified error message.
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
)VB
Public Sub New (
message As String
)C++
public:
CustomException(
String^ message
)F#
new :
message : string -> CustomExceptionParameters
- message String
- The message that describes the error.