chain_pass_exceptions() — langchain Function Reference
Architecture documentation for the chain_pass_exceptions() function in test_fallbacks.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8d768b5a_82f7_9030_2480_295b08ffe2c1["chain_pass_exceptions()"] 905e276b_98d0_eba1_e23b_8303081c1894["test_fallbacks.py"] 8d768b5a_82f7_9030_2480_295b08ffe2c1 -->|defined in| 905e276b_98d0_eba1_e23b_8303081c1894 style 8d768b5a_82f7_9030_2480_295b08ffe2c1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_fallbacks.py lines 72–76
def chain_pass_exceptions() -> Runnable[Any, str]:
fallback = RunnableLambda(_dont_raise_error)
return {"text": RunnablePassthrough()} | RunnableLambda(
_raise_error
).with_fallbacks([fallback], exception_key="exception")
Domain
Subdomains
Source
Frequently Asked Questions
What does chain_pass_exceptions() do?
chain_pass_exceptions() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py.
Where is chain_pass_exceptions() defined?
chain_pass_exceptions() is defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py at line 72.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free