1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
class FileFormatError(Exception):
"""Raised when the format of given file is unsupported or unrecognized."""
pass
class ParseError(Exception):
"""Raised when the file cannot be parsed correctly."""
pass
class DecryptionError(Exception):
"""Raised when the file cannot be decrypted."""
pass
class EncryptionError(Exception):
"""Raised when the file cannot be encrypted."""
pass
class InvalidKeyError(DecryptionError):
"""Raised when the given password or key is incorrect or cannot be verified."""
pass
|