mapteksdk.project.errors module
Errors raised by the project module.
- exception DeleteRootError
Bases:
Exception
Error raised when you attempt to delete the root container.
- 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 ObjectDoesNotExistError
Bases:
Exception
Error raised when attempting an operation on an object which does not exist.
- 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 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.
- 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 NoHostApplicationError
Bases:
OSError
Error raised when there are no host applications to connect to.
This inherits from OSError for backwards compatibility reasons.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- characters_written
- errno
POSIX exception code
- filename
exception filename
- filename2
second exception filename
- strerror
exception strerror
- winerror
Win32 exception code
- 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.
- 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 ApplicationTooOldError
Bases:
Exception
Error raised when connecting to an application which is too old.
- 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 NoRecycleBinError
Bases:
ObjectDoesNotExistError
Error raised when attempting an operation on the recycle bin which does not exist.
- 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 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) –
- 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.