ErrorCode Class — langchain Architecture
Architecture documentation for the ErrorCode class in exceptions.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 24af1048_5272_bb44_5626_9463f8aa1dea["ErrorCode"] 445b6774_2020_8a8c_b7c7_f5804c232169["exceptions.py"] 24af1048_5272_bb44_5626_9463f8aa1dea -->|defined in| 445b6774_2020_8a8c_b7c7_f5804c232169
Relationship Graph
Source Code
libs/core/langchain_core/exceptions.py lines 76–85
class ErrorCode(Enum):
"""Error codes."""
INVALID_PROMPT_INPUT = "INVALID_PROMPT_INPUT"
INVALID_TOOL_RESULTS = "INVALID_TOOL_RESULTS" # Used in JS; not Py (yet)
MESSAGE_COERCION_FAILURE = "MESSAGE_COERCION_FAILURE"
MODEL_AUTHENTICATION = "MODEL_AUTHENTICATION" # Used in JS; not Py (yet)
MODEL_NOT_FOUND = "MODEL_NOT_FOUND" # Used in JS; not Py (yet)
MODEL_RATE_LIMIT = "MODEL_RATE_LIMIT" # Used in JS; not Py (yet)
OUTPUT_PARSING_FAILURE = "OUTPUT_PARSING_FAILURE"
Defined In
Source
Frequently Asked Questions
What is the ErrorCode class?
ErrorCode is a class in the langchain codebase, defined in libs/core/langchain_core/exceptions.py.
Where is ErrorCode defined?
ErrorCode is defined in libs/core/langchain_core/exceptions.py at line 76.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free