RuleException Constructor (String^, Exception^)
Initializes a new instance of the RuleException class, with a specified error message and a reference to the inner Exception that is the cause of this Exception.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
Parameters
- message
-
Type:
System::String^
The message that describes the error.
- ex
-
Type:
System::Exception^
The Exception that is the cause of the current Exception . If the innerException parameter is not a null reference (Nothing in Visual Basic), the current Exception is raised in a catch block that handles the inner Exception .
An Exception that is thrown as a direct result of a previous Exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing) if the InnerException property does not supply the inner Exception value to the constructor.
The following table shows the initial property values for an instance of RuleException.
Property | Value |
|---|---|
The inner Exception reference. | |
The error message string. |
Available since 3.0