cifkit.utils.error_messages module
- class cifkit.utils.error_messages.CifParserError(*values)[source]
Bases:
Enum
- DUPLICATE_LABELS = 'The file contains duplicate atom site labels.'
- INVALID_LOOP_TAGS = 'The returned loop tags do not match the expected tags.'
- INVALID_PARSED_ELEMENT = 'The element was not correctly parsed from the site label.'
- MISSING_COORDINATES = 'Missing atomic coordinates'
- MISSING_LOOP_VALUES = 'Wrong number of values in loop'
- SYMMETRY_OPERATION_ERROR = 'An error occurred while processing symmetry operation'
- class cifkit.utils.error_messages.FileError(*values)[source]
Bases:
Enum
- FILE_IS_EMPTY = 'The file at {file_path} is empty.'
- FILE_NOT_FOUND = 'The file at {file_path} was not found.'
- class cifkit.utils.error_messages.GeneralError(*values)[source]
Bases:
Enum
- EMPTY_STRING_INPUT = 'The formula/label cannot be empty.'
- INVALID_CIF_BLOCK = 'The CIF block should not be None.'
- INVALID_TYPE = 'The formula/label must be a string.'
- NON_ALPHABETIC_START = 'The first character must be alphabetic after trimming.'
- NON_MATCHING_ELEMENT = 'No matching element was parsed from the site label.'