Failure

ConvertResult.Failure method

Creates a failed result with error information.

public static ConvertResult Failure(string errorMessage, Exception exception)
Parameter Type Description
errorMessage String A human-readable description of the error.
exception Exception The exception that caused the failure.

Return Value

A ConvertResult with IsSuccess set to false.

See Also