core/llm_error library

Classes

DioErrorHandler
Dio error handler utility for consistent error handling across providers
HttpErrorMapper
HTTP error mapper utility

Exceptions / Errors

AuthError
Authentication and authorization errors
ContentFilterError
Content filter error
GenericError
Generic error
HttpError
HTTP request/response errors
InvalidRequestError
Invalid request parameters or format
JsonError
JSON serialization/deserialization errors
LLMError
Error types that can occur when interacting with LLM providers.
ModelNotAvailableError
Model not available error
NotFoundError
Resource not found error (404)
OpenAIResponsesError
OpenAI Responses API specific error
ProviderError
Errors returned by the LLM provider
QuotaExceededError
Quota exceeded error
RateLimitError
Rate limit exceeded error
ResponseFormatError
API response parsing or format error
ServerError
Server error (5xx status codes)
StructuredOutputError
Structured output validation error
TimeoutError
Timeout error for request timeouts
ToolConfigError
Tool configuration error
ToolExecutionError
Tool execution error
ToolValidationError
Tool validation error
UnsupportedCapabilityError
Unsupported capability error