Source code for msoffcrypto.exceptions
[docs]
class ParseError(Exception):
"""Raised when the file cannot be parsed correctly."""
pass
[docs]
class DecryptionError(Exception):
"""Raised when the file cannot be decrypted."""
pass
[docs]
class EncryptionError(Exception):
"""Raised when the file cannot be encrypted."""
pass
[docs]
class InvalidKeyError(DecryptionError):
"""Raised when the given password or key is incorrect or cannot be verified."""
pass