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
AnyLLMErrorAttribute
Type
Description
Provider Errors
RateLimitError
RateLimitErrorAuthenticationError
AuthenticationErrorInvalidRequestError
InvalidRequestErrorProviderError
ProviderErrorContentFilterError
ContentFilterErrorModelNotFoundError
ModelNotFoundErrorContextLengthExceededError
ContextLengthExceededErrorConfiguration Errors
MissingApiKeyError
MissingApiKeyErrorAttribute
Type
Description
UnsupportedProviderError
UnsupportedProviderErrorAttribute
Type
Description
UnsupportedParameterError
UnsupportedParameterErrorAttribute
Type
Description
Common Scenarios
Scenario
Exception
Example Trigger
Usage
Last updated