ccproxy.core.errors¶
ccproxy.core.errors
¶
Core error types for the proxy system.
ProxyError
¶
Bases: Exception
Base exception for all proxy-related errors.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The error message |
required |
cause
|
Exception | None
|
The underlying exception that caused this error |
None
|
Source code in ccproxy/core/errors.py
TransformationError
¶
Bases: ProxyError
Error raised during data transformation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The error message |
required |
data
|
Any
|
The data that failed to transform |
None
|
cause
|
Exception | None
|
The underlying exception |
None
|
Source code in ccproxy/core/errors.py
MiddlewareError
¶
Bases: ProxyError
Error raised during middleware execution.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The error message |
required |
middleware_name
|
str | None
|
The name of the middleware that failed |
None
|
cause
|
Exception | None
|
The underlying exception |
None
|
Source code in ccproxy/core/errors.py
ProxyConnectionError
¶
Bases: ProxyError
Error raised when proxy connection fails.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The error message |
required |
url
|
str | None
|
The URL that failed to connect |
None
|
cause
|
Exception | None
|
The underlying exception |
None
|
Source code in ccproxy/core/errors.py
ProxyTimeoutError
¶
Bases: ProxyError
Error raised when proxy operation times out.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The error message |
required |
timeout
|
float | None
|
The timeout value in seconds |
None
|
cause
|
Exception | None
|
The underlying exception |
None
|
Source code in ccproxy/core/errors.py
ProxyAuthenticationError
¶
Bases: ProxyError
Error raised when proxy authentication fails.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The error message |
required |
auth_type
|
str | None
|
The type of authentication that failed |
None
|
cause
|
Exception | None
|
The underlying exception |
None
|
Source code in ccproxy/core/errors.py
ClaudeProxyError
¶
ValidationError
¶
AuthenticationError
¶
PermissionError
¶
NotFoundError
¶
RateLimitError
¶
ModelNotFoundError
¶
TimeoutError
¶
ServiceUnavailableError
¶
DockerError
¶
Bases: ClaudeProxyError
Docker operation error.