Failure

DocumentConverterResult.Failure method

Creates a failed conversion result with error information.

public static DocumentConverterResult Failure(string errorMessage, Exception exception)
Parameter Type Description
errorMessage String The error message describing why the conversion failed.
exception Exception The exception that caused the conversion to fail.

Return Value

A DocumentConverterResult containing the error information.

Exceptions

exception condition
ArgumentNullException Thrown when errorMessage is null.

See Also