[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.CreateError

CreateError Method

CreateError(string, ErrorCode, string)

Creates a new Error Variant with the specified message and error code.

Declaration
public static Variant CreateError(string message, ErrorCode errorCode = ErrorCode.InvalidOperation, string methodName = null)
Parameters
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.

Returns
Type Description
Variant

A new Error Variant.