Method CriticalError
| Improve this Doc View SourceCriticalError()
Represents a situation where a service detects unexpected behavior (critical error) and does not know how to handle it.
Declaration
public static Result CriticalError()
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Everything provided by the user was valid, but the service was unable to complete due to an exception.
CriticalError(String)
Represents a situation where a service detects unexpected behavior (critical error) and does not know how to handle it.
Declaration
public static Result CriticalError(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | An error message. |
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Everything provided by the user was valid, but the service was unable to complete due to an exception.
CriticalError(IEnumerable<String>)
Represents a situation where a service detects unexpected behavior (critical error) and does not know how to handle it.
Declaration
public static Result CriticalError(IEnumerable<string> errors)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<String> | errors | A collection of string that contains error messages. |
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Everything provided by the user was valid, but the service was unable to complete due to an exception.
CriticalError(String, IEnumerable<String>)
Represents a situation where a service detects unexpected behavior (critical error) and does not know how to handle it.
Declaration
public static Result CriticalError(string message, IEnumerable<string> errors)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | A general description of the error. |
| IEnumerable<String> | errors | A collection of errors. |
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Everything provided by the user was valid, but the service was unable to complete due to an exception.