Method Failure
Failure(string)
Get a run result representing a failure.
Declaration
public RunResult Failure(string reason)
Parameters
| Type | Name | Description | 
|---|---|---|
| string | reason | The reason of the failure.  | 
    
Returns
| Type | Description | 
|---|---|
| RunResult | A new run result instance.  | 
    
Failure(Exception)
Get a run result representing a failure.
Declaration
public RunResult Failure(Exception exception)
Parameters
| Type | Name | Description | 
|---|---|---|
| Exception | exception | The exception that was thrown.  | 
    
Returns
| Type | Description | 
|---|---|
| RunResult | A new run result instance.  |