OnConversionFailed

IConversionByPageHandlersStage.OnConversionFailed method

Registers a callback to be invoked when a page conversion fails. Re-invoking replaces any previously set handler. It reports the final outcome only: a document that loads after the load options provider was asked again is not reported.

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

Return Value

This stage, so additional handlers or Convert / Compress may be chained.

See Also