Source code for msoffcrypto.exceptions [docs]class FileFormatError(Exception): """Raised when the format of given file is unsupported or unrecognized.""" pass [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