Home / Function/ on_chain_error() — langchain Function Reference

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
  244628aa_1316_8ea9_ca7d_e01a11961dd0["on_chain_error()"]
  66da139c_43ad_70b6_544d_0cf450da0b2f["FakeCallbackHandler"]
  244628aa_1316_8ea9_ca7d_e01a11961dd0 -->|defined in| 66da139c_43ad_70b6_544d_0cf450da0b2f
  38d7b2fe_69c5_1d10_fadf_70a608ab457f["on_chain_error()"]
  38d7b2fe_69c5_1d10_fadf_70a608ab457f -->|calls| 244628aa_1316_8ea9_ca7d_e01a11961dd0
  928fa63a_2c1f_ba61_f484_e3cfaaeeff88["on_chain_error_common()"]
  244628aa_1316_8ea9_ca7d_e01a11961dd0 -->|calls| 928fa63a_2c1f_ba61_f484_e3cfaaeeff88
  38d7b2fe_69c5_1d10_fadf_70a608ab457f["on_chain_error()"]
  244628aa_1316_8ea9_ca7d_e01a11961dd0 -->|calls| 38d7b2fe_69c5_1d10_fadf_70a608ab457f
  style 244628aa_1316_8ea9_ca7d_e01a11961dd0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 196–201

    def on_chain_error(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> Any:
        self.on_chain_error_common()

Domain

Subdomains

Called By

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 196.
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