[]
Creates a new Error Variant with the specified message and error code.
public static Variant CreateError(string message, ErrorCode errorCode = ErrorCode.InvalidOperation, string methodName = null)
| Type | Name | Description |
|---|---|---|
| string | message | The error message. |
| ErrorCode | errorCode | The error code. |
| string | methodName | The name of the method where the error occurred. This parameter is optional. |
| Type | Description |
|---|---|
| Variant | A new Error Variant. |