This module contains custom Exception classes for Transana.

class RecordLockedError(exceptions.Exception):
Raised when a database operation fails because the record is locked.

class RecordNotFoundError(exceptions.Exception):
Raised when the specified record was not found in the database.

class SaveError(exceptions.Exception):
Raised when a record save attempt fails.

class DeleteError(exceptions.Exception):
Raised when a record delete attempt fails.

class InvalidLockError(SaveError):
Raised when a record lock that is no longer valid halts the save.

class NotImplementedError(exceptions.Exception):
Raised when a feature is not yet implemented.

class ImageLoadError(exceptions.Exception):
Raised when a image file was not successfully loaded.

class ProgrammingError(exceptions.Exception):
Raised when program reaches invalid state due to programming error.

class GeneralError(exceptions.Exception):
General error message.

def ReportRecordLockedException(rtype, id, e):
Handles the reporting of Record Lock Exceptions consistently.

TransanaExceptions contains the following functions:

FunctionDescription
ReportRecordLockedException() Report a RecordLocked exception
ReportRecordLockedException() Report a RecordLocked exception