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