xyzspaces.iml.exceptions module¶
This module defines all the exceptions for iml package.
- exception xyzspaces.iml.exceptions.AuthenticationException(resp)[source]¶
Bases:
ExceptionThis
AuthenticationExceptionis raised either authentication or authorization on the platform fails.
- exception xyzspaces.iml.exceptions.TooManyRequestsException(resp)[source]¶
Bases:
ExceptionException raised for API HTTP response status code 429.
This is a dedicated exception to be used with the backoff package, because it requires a specific exception class. The exception value will be the response object returned by
requestswhich provides access to all its attributes, eg.status_code,reasonandtext, etc.
- exception xyzspaces.iml.exceptions.ConfigException[source]¶
Bases:
ExceptionThis
ConfigExceptionis raised whenever there is any error related to platform configuration.
- exception xyzspaces.iml.exceptions.PayloadTooLargeException(resp)[source]¶
Bases:
ExceptionException raised for API HTTP response status code 513.
This is a dedicated exception to be used for interactive map layer. This exception will be raised when response payload is larger than the specified limits of the interactive map layer. The exception value will be the response object returned by
requestswhich provides access to all its attributes, eg.status_code,reasonandtext, etc.
- exception xyzspaces.iml.exceptions.RequestEntityTooLargeException(resp)[source]¶
Bases:
ExceptionException raised for API HTTP response status code 413.
This is a dedicated exception to be used for interactive map layer. This exception will be raised when request body is larger than the specified limits of the interactive map layer. The exception value will be the response object returned by
requestswhich provides access to all its attributes, eg.status_code,reasonandtext, etc.