Skip to content

Subset: Errors

Public exception hierarchy.

URI: Errors

Identifier and Mapping Information

Schema Source

Classes in subset

Class Description
AdapterParseError Raised when an Adapter fails to parse an LM response (``dspy
ContextWindowExceededError Context window exceeded
DSPyError Root of the public DSPy exception hierarchy (``dspy
LMAuthError LM authentication error
LMBillingError LM billing / quota error
LMConfigurationError Misconfigured LM
LMError Abstract base for LM-related errors (``dspy
LMInvalidRequestError LM rejected the request
LMNotConfiguredError Raised when no LM is configured
LMProviderError Provider-side LM error
LMRateLimitError LM rate-limit error
LMServerError Server-side LM error
LMTimeoutError Request timed out
LMTransportError Transport-level LM error
LMUnexpectedError Unexpected / unclassified LM error
LMUnsupportedFeatureError Feature not supported by the underlying LM
LMUnsupportedModelError Model is not supported