here.platform.exceptions module — HERE Data SDK for Python documentation
- Last UpdatedJun 18, 2025
- 3 minute read
This module contains all exception classes defined by the HERE Python SDK.
- exception here.platform.exceptions.AuthenticationException(resp)[source]#
Bases:
PlatformException
This
AuthenticationException
is raised either authentication or authorization on the platform fails.
- exception here.platform.exceptions.CatalogConfigurationException[source]#
Bases:
Exception
This
CatalogConfigurationException
is raised when the catalog configuration is invalid.
- exception here.platform.exceptions.ConfigException[source]#
Bases:
Exception
This
ConfigException
is raised whenever there is any error related to platform configuration.
- exception here.platform.exceptions.DecodeException[source]#
Bases:
Exception
Raised when data cannot be decoded from a source representation (content type).
- exception here.platform.exceptions.EncodeException[source]#
Bases:
Exception
Raised when data cannot be encoded to a target representation (content type).
- exception here.platform.exceptions.InequalReadsException(resp: Response)[source]#
Bases:
PlatformException
Exception 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:
Exception
This
LayerConfigurationException
is raised when the layer configuration is invalid.
- exception here.platform.exceptions.PayloadTooLargeException(resp: Response)[source]#
Bases:
PlatformException
Exception 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
requests
which provides access to all its attributes, eg.status_code
,reason
andtext
, etc.
- exception here.platform.exceptions.PlatformException(resp: Response)[source]#
Bases:
Exception
Base class for HERE platform exceptions.
- exception here.platform.exceptions.PublicationException(publication_id: str, publication_state: PublicationState)[source]#
Bases:
Exception
- This
PublicationException
is raised in case the publication is not finalized successfully.
- This
- exception here.platform.exceptions.RequestEntityTooLargeException(resp: Response)[source]#
Bases:
PlatformException
Exception 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
requests
which provides access to all its attributes, eg.status_code
,reason
andtext
, etc.
- exception here.platform.exceptions.ResourceLimitExceededException(resp)[source]#
Bases:
PlatformException
- This
ResourceLimitExceededException
is 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:
Exception
This
SchemaException
is raised when something about a data schema is invalid.
Bases:
PlatformException
Exception 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
requests
which provides access to all its attributes, eg.status_code
,reason
andtext
, etc.
- exception here.platform.exceptions.TooManyRequestsException(resp: Response)[source]#
Bases:
PlatformException
Exception 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
requests
which provides access to all its attributes, eg.status_code
,reason
andtext
, etc.
- exception here.platform.exceptions.UnsupportedContentTypeDecodeException(content_type: str)[source]#
Bases:
DecodeException
Raised when trying to decode a content type that is not supported by the specified
Adapter
and correspondingDecoder
.
- exception here.platform.exceptions.UnsupportedContentTypeEncodeException(content_type: str)[source]#
Bases:
EncodeException
Raised when trying to encode a content type that is not supported by the specified
Adapter
and correspondingEncoder
.