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.

Namespace:   System.Workflow.Activities.Rules
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

public:
RuleException(
	String^ message,
	Exception^ ex
)

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

InnerException

The inner Exception reference.

Message

The error message string.

.NET Framework
Available since 3.0
Return to top
Show: