Exceptions🔗
The earthdaily.earthone.exceptions module defines a hierarchy of exceptions for handling EarthOne API errors.
exceptions 🔗
Exceptions raised by HTTP clients.
ClientError 🔗
AuthError 🔗
Bases: ClientError
Authentication error, improperly supplied credentials.
OauthError 🔗
ConfigError 🔗
ServerError 🔗
BadRequestError 🔗
Bases: ClientError
Client request with incorrect parameters.
Source code in earthdaily/earthone/exceptions.py
UnauthorizedError 🔗
Bases: ClientError
Client request lacking authentication.
Source code in earthdaily/earthone/exceptions.py
ForbiddenError 🔗
Bases: ClientError
Client request lacks necessary permissions.
Source code in earthdaily/earthone/exceptions.py
NotFoundError 🔗
MethodNotAllowedError 🔗
Bases: ClientError
Requested nethod not supported by the resource.
Source code in earthdaily/earthone/exceptions.py
ProxyAuthenticationRequiredError 🔗
Bases: ClientError
Client request needs proxy authentication.
Attributes🔗
status : int
The status code of the error response.
proxy_authenticate : Optional[str]
A ProxyAuthenticate <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate>_
header if found in the response.
Source code in earthdaily/earthone/exceptions.py
ConflictError 🔗
Bases: ClientError
Client request conflicts with existing state.
Source code in earthdaily/earthone/exceptions.py
GoneError 🔗
Bases: ClientError
Client request to a URL which has been permanently removed.
Source code in earthdaily/earthone/exceptions.py
ValidationError 🔗
Bases: BadRequestError
Client request with invalid parameters.
Source code in earthdaily/earthone/exceptions.py
RateLimitError 🔗
Bases: ClientError
Client request exceeds rate limits.
The retry_after member will contain any time limit returned in the response.
Source code in earthdaily/earthone/exceptions.py
__init__ 🔗
Construct a new instance.
:param str message: The error message.
:type retry_after: str or None
:param retry_after: An indication of a
retry-after timeout specified by the error response.
Source code in earthdaily/earthone/exceptions.py
RetryWithError 🔗
Bases: ClientError
Vector service query request timed out.
Source code in earthdaily/earthone/exceptions.py
GatewayTimeoutError 🔗
Bases: ServerError
Timeout from the gateway after failing to route request to destination service.
Source code in earthdaily/earthone/exceptions.py
RequestCancellationError 🔗
Bases: ClientError
Client cancelled the request and no status or response was received.