failure method

failure

Creates a failed result with error information.

def failure(cls, error_message, exception):
    ...
Parameter Type Description
error_message str A human-readable description of the error.
exception Exception The exception that caused the failure.

Returns: ConvertResult: A ConvertResult with IsSuccess set to False.

See Also