msoffcrypto.exceptions package#

Module contents#

exception msoffcrypto.exceptions.DecryptionError[source]#

Bases: Exception

Raised when the file cannot be decrypted.

exception msoffcrypto.exceptions.EncryptionError[source]#

Bases: Exception

Raised when the file cannot be encrypted.

exception msoffcrypto.exceptions.FileFormatError[source]#

Bases: Exception

Raised when the format of given file is unsupported or unrecognized.

exception msoffcrypto.exceptions.InvalidKeyError[source]#

Bases: DecryptionError

Raised when the given password or key is incorrect or cannot be verified.

exception msoffcrypto.exceptions.ParseError[source]#

Bases: Exception

Raised when the file cannot be parsed correctly.