exceptions
¶
Cryptography-specific exceptions.
CryptographyError
¶
Bases: Exception
Base exception for cryptography operations.
Initialize CryptographyError.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Error description |
required |
details
|
dict[str, Any] | None
|
Additional error context |
None
|
Source code in src/app/features/crypto/exceptions.py
KeyGenerationError
¶
Bases: CryptographyError
Exception raised when key generation fails.
Source code in src/app/features/crypto/exceptions.py
DecryptionError
¶
Bases: CryptographyError
Exception raised when decryption fails.
Source code in src/app/features/crypto/exceptions.py
EncryptionError
¶
Bases: CryptographyError
Exception raised when encryption fails.
Source code in src/app/features/crypto/exceptions.py
InvalidTokenError
¶
Bases: CryptographyError
Exception raised when token format is invalid.
Source code in src/app/features/crypto/exceptions.py
InvalidKeyError
¶
Bases: CryptographyError
Exception raised when encryption key is invalid.