Source code for encryptlib.exceptions

"""Exception classes for the encryptlib package."""

[docs] class EncryptionError(Exception): """Base exception class for encryption-related errors.""" pass
[docs] class InvalidKeyError(EncryptionError): """Raised when the encryption key is invalid.""" pass
[docs] class MessageFormatError(EncryptionError): """Raised when the message format is invalid.""" pass