langchain/callbacks/streaming_stdout.py/StreamingStdOutCallbackHandler/on_chain_error
class StreamingStdOutCallbackHandler:    def on_chain_error(
        self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any
    ) -> None:
        """Run when chain errors."""