on_chain_error() — langchain Function Reference
Architecture documentation for the on_chain_error() function in fake_callback_handler.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 38d7b2fe_69c5_1d10_fadf_70a608ab457f["on_chain_error()"] c82a49cc_3a43_e4a6_1cb8_d4b415fb5209["FakeAsyncCallbackHandler"] 38d7b2fe_69c5_1d10_fadf_70a608ab457f -->|defined in| c82a49cc_3a43_e4a6_1cb8_d4b415fb5209 244628aa_1316_8ea9_ca7d_e01a11961dd0["on_chain_error()"] 244628aa_1316_8ea9_ca7d_e01a11961dd0 -->|calls| 38d7b2fe_69c5_1d10_fadf_70a608ab457f 928fa63a_2c1f_ba61_f484_e3cfaaeeff88["on_chain_error_common()"] 38d7b2fe_69c5_1d10_fadf_70a608ab457f -->|calls| 928fa63a_2c1f_ba61_f484_e3cfaaeeff88 244628aa_1316_8ea9_ca7d_e01a11961dd0["on_chain_error()"] 38d7b2fe_69c5_1d10_fadf_70a608ab457f -->|calls| 244628aa_1316_8ea9_ca7d_e01a11961dd0 style 38d7b2fe_69c5_1d10_fadf_70a608ab457f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 369–374
async def on_chain_error(
self,
*args: Any,
**kwargs: Any,
) -> None:
self.on_chain_error_common()
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does on_chain_error() do?
on_chain_error() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py.
Where is on_chain_error() defined?
on_chain_error() is defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py at line 369.
What does on_chain_error() call?
on_chain_error() calls 2 function(s): on_chain_error, on_chain_error_common.
What calls on_chain_error()?
on_chain_error() is called by 1 function(s): on_chain_error.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free