Registers a callback to be invoked when a document conversion fails. Re‑invoking replaces any previously set handler.
defon_conversion_failed(self,on_failed):...
Parameter
Type
Description
on_failed
Action[ConvertedContext, Exception]
Callable[[GroupDocs.Conversion.Fluent.IConversionContext, Exception], Any] – an action to handle the failure, receiving the conversion context and the exception that caused the failure.
Returns: IConversionHandlerCompleted – the current stage, allowing additional handlers or Convert / Compress to be chained.