mapteksdk.data.errors module

Generic errors raised by classes in this packages.

More specialised errors are placed in other modules.

exception ReadOnlyError(message=None)

Bases: Exception

Exception raised when operation fails due to being read-only

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception CannotSaveInReadOnlyModeError(message=None)

Bases: Exception

Error raised when attempting to save an object in read only mode.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception DegenerateTopologyError

Bases: Exception

Error raised when creating an object with degenerate topology.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception InvalidColourMapError

Bases: Exception

Error raised when creating an invalid colour map.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception RegistrationTypeNotSupportedError(unsupported_type)

Bases: Exception

Error raised when a type of raster registration is not supported.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception AlreadyAssociatedError

Bases: Exception

Error raised when a associating a Raster which is already associated.

The Raster may be associated with another object or be already associated with the same object.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception NonOrphanRasterError

Bases: Exception

Error raised when associating a raster which is not an orphan.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception ObjectNotSupportedError(unsupported_type)

Bases: Exception

Error raised when an object is not supported.

Parameters:

unsupported_type (type) –

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception StaleDataError

Bases: Exception

Error raised when accessing data which might be stale.

A property is considered ‘stale’ if it is derived from another property and that property has changed but the derived property’s has not been updated based on the change.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception AppendPointsNotSupportedError

Bases: Exception

Exception raised when appending points is not supported.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception AmbiguousNameError

Bases: ValueError

Error raised when a primitive attribute is given an ambiguous name.

This is raised when attempting to create a primitive attribute with the same name as an existing attribute, but different metadata.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.