mapteksdk.project.errors module

Errors raised by the project module.

exception DeleteRootError

Bases: Exception

Error raised when you attempt to delete the root container.

args
with_traceback()

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

exception ObjectDoesNotExistError

Bases: Exception

Error raised when attempting an operation on an object which does not exist.

args
with_traceback()

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

exception TypeMismatchError(expected_type, actual_type)

Bases: TypeError

Error raised when the type in the Project doesn’t match.

This is raised by Project.read() and Project.edit() when the actual type of the object in the Project does not match the expected type of that object.

Parameters
  • expected_type (type) – The expected type for the object.

  • actual_type (type) – The actual type of the object.

args
with_traceback()

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

exception ProjectConnectionFailureError

Bases: Exception

Error raised when connecting to the project fails.

args
with_traceback()

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

exception ApplicationTooOldError

Bases: Exception

Error raised when connecting to an application which is too old.

args
with_traceback()

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

exception NoRecycleBinError

Bases: ObjectDoesNotExistError

Error raised when attempting an operation on the recycle bin which does not exist.

args
with_traceback()

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

exception InvalidParentError(variable_name, path_to_parent)

Bases: Exception

Error raised when an object can’t be the parent of another object.

This is raised when adding an object to an object that can’t be a parent.

Parameters
  • variable_name (str) –

  • path_to_parent (str) –

args
with_traceback()

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