OnConversionFailed

IConversionHandlerSetup.OnConversionFailed method

Registers a callback to be invoked when a document conversion fails.

public IConversionHandlerCompleted OnConversionFailed(Action<ConvertedContext, Exception> onFailed)
Parameter Type Description
onFailed Action`2 An action to handle the failure, receiving the conversion context and the exception that caused the failure.

Return Value

Interface to continue conversion building, allowing only OnConversionCompleted or Convert/Compress.

See Also