here.platform.exceptions module#
This module contains all exception classes defined by the HERE Python SDK.
- exception here.platform.exceptions.AuthenticationException(resp)[source]#
Bases:
PlatformExceptionThis
AuthenticationExceptionis raised either authentication or authorization on the platform fails.
- exception here.platform.exceptions.CatalogConfigurationException[source]#
Bases:
ExceptionThis
CatalogConfigurationExceptionis raised when the catalog configuration is invalid.
- exception here.platform.exceptions.ConfigException[source]#
Bases:
ExceptionThis
ConfigExceptionis raised whenever there is any error related to platform configuration.
- exception here.platform.exceptions.DecodeException[source]#
Bases:
ExceptionRaised when data cannot be decoded from a source representation (content type).
- exception here.platform.exceptions.EncodeException[source]#
Bases:
ExceptionRaised when data cannot be encoded to a target representation (content type).
- exception here.platform.exceptions.InequalReadsException(resp: Response)[source]#
Bases:
PlatformExceptionException raised when the response content actual length differs from expected length.
This Exception is used at request method at base api. Useful for large data size when there are chances that inequal reads events might occur.
- exception here.platform.exceptions.LayerConfigurationException[source]#
Bases:
ExceptionThis
LayerConfigurationExceptionis raised when the layer configuration is invalid.
- exception here.platform.exceptions.PayloadTooLargeException(resp: Response)[source]#
Bases:
PlatformExceptionException 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 here.platform.exceptions.PlatformException(resp: Response)[source]#
Bases:
ExceptionBase class for HERE platform exceptions.
- exception here.platform.exceptions.PublicationException(publication_id: str, publication_state: PublicationState)[source]#
Bases:
Exception- This
PublicationExceptionis raised in case the publication is not finalized successfully.
- This
- exception here.platform.exceptions.RequestEntityTooLargeException(resp: Response)[source]#
Bases:
PlatformExceptionException 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.
- exception here.platform.exceptions.ResourceLimitExceededException(resp)[source]#
Bases:
PlatformException- This
ResourceLimitExceededExceptionis raised in below scenerio 1.The maximum number of catalogs or layers possible for this organization have already been created. 2.Maximum storage capacity allocation has been reached for this layer type for this realm.
- This
- exception here.platform.exceptions.SchemaException[source]#
Bases:
ExceptionThis
SchemaExceptionis raised when something about a data schema is invalid.
Bases:
PlatformExceptionException raised for API HTTP response status code 408, 500, 502, 503, or 504.
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 here.platform.exceptions.TooManyRequestsException(resp: Response)[source]#
Bases:
PlatformExceptionException 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 here.platform.exceptions.UnsupportedContentTypeDecodeException(content_type: str)[source]#
Bases:
DecodeExceptionRaised when trying to decode a content type that is not supported by the specified
Adapterand correspondingDecoder.
- exception here.platform.exceptions.UnsupportedContentTypeEncodeException(content_type: str)[source]#
Bases:
EncodeExceptionRaised when trying to encode a content type that is not supported by the specified
Adapterand correspondingEncoder.