FailuresAccessor.IsFailureResolutionPermitted(FailureMessageAccessor, FailureResolutionType)
Method
Description:
Checks if resolution of the failure using given resolution type is permitted.
Checks if resolution of the failure using given resolution type is permitted.
Syntax
public bool IsFailureResolutionPermitted(
FailureMessageAccessor failure,
FailureResolutionType resolutionType
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| failure | FailureMessageAccessor | Accessor to the failure to be resolved. |
| resolutionType | FailureResolutionType | Type of the failure resolution to be used. |
Return Value
| Type | Description |
|---|---|
| Boolean | True if resolution of the failure using given resolution type is permitted. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | failure has not been properly initialized. |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
| InvalidOperationException | This FailuresAccessor is inactive (is used outside of failures processing). |