langchain/callbacks/clearml_callback.py/ClearMLCallbackHandler/on_chain_error
class ClearMLCallbackHandler:    def on_chain_error(
        self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any
    ) -> None:
        """Run when chain errors."""
        self.step += 1
        self.errors += 1