Exceptions
Unified exception hierarchy for all providers
Exception Hierarchy
AnyLLMError
├── AuthenticationError
├── BatchNotCompleteError
├── ContentFilterError
├── ContentFilterFinishReasonError
├── ContextLengthExceededError
├── GatewayTimeoutError
├── InsufficientFundsError
├── InvalidRequestError
├── LengthFinishReasonError
├── MissingApiKeyError
├── ModelNotFoundError
├── ProviderError
├── RateLimitError
├── UnsupportedParameterError
├── UnsupportedProviderError
├── UpstreamProviderError
└── _FinishReasonErrorAnyLLMError
Attribute
Type
Description
Provider Errors
RateLimitError
AuthenticationError
InvalidRequestError
ProviderError
ContentFilterError
ModelNotFoundError
ContextLengthExceededError
Configuration Errors
MissingApiKeyError
Attribute
Type
Description
UnsupportedProviderError
Attribute
Type
Description
UnsupportedParameterError
Attribute
Type
Description
Common Scenarios
Scenario
Exception
Example Trigger
How the Exception Type Is Chosen
Status
Exception
Usage
Last updated