Exceptions Class DocumentationΒΆ
-
exception
eptransition.exceptions.FileAccessException(file_path, problem_type, file_nickname, message=None)[source] Bases:
exceptions.ExceptionThis exception occurs when the transition tool encounters a problem accessing a prescribed input or output file.
Parameters: - file_path (str) – The file path which is causing the issue
- problem_type (str) – The type of problem occurring, from the constants defined in this class
- file_nickname (str) – The nickname of the file, from the constants defined in this class
- message (str) – An optional additional message to write out
-
CANNOT_FIND_FILE= 'cannot find file'
-
CANNOT_READ_FILE= 'cannot read file'
-
CANNOT_WRITE_TO_FILE= 'cannot write to file'
-
FILE_EXISTS_MUST_DELETE= 'file exists, must delete'
-
ORIGINAL_DICT_FILE= 'original dictionary file'
-
ORIGINAL_INPUT_FILE= 'original input file'
-
TRIED_BUT_CANNOT_DELETE_FILE= "tried to delete file, but couldn't"
-
UPDATED_DICT_FILE= 'updated dictionary file'
-
UPDATED_INPUT_FILE= 'updated input file'
-
exception
eptransition.exceptions.FileTypeException(file_path, file_nickname, message)[source] Bases:
exceptions.ExceptionThis exception occurs when the prescribed file types do not match the expected conditions.
-
ORIGINAL_DICT_FILE= 'original dictionary file'
-
ORIGINAL_INPUT_FILE= 'original input file'
-
UPDATED_DICT_FILE= 'updated dictionary file'
-
UPDATED_INPUT_FILE= 'updated input file'
-
-
exception
eptransition.exceptions.ManagerProcessingException(msg, issues=None)[source] Bases:
exceptions.ExceptionThis exception occurs when the transition tool encounters an unexpected issue when doing the transition.
-
exception
eptransition.exceptions.ProcessingException(message, line_index=None, object_name='', field_name='')[source] Bases:
exceptions.ExceptionThis exception occurs when an unexpected error occurs during the processing of an input file.
-
exception
eptransition.exceptions.UnimplementedMethodException(class_name, method_name)[source] Bases:
exceptions.ExceptionThis exception occurs when a call is made to a function that should be implemented in a derived class but is not, so the base class function is called. This is a developer issue.
Parameters: - class_name (str) – The name of the base class where the virtual function is defined
- method_name (str) – The method name which should be overridden in the derived class