Files
OpenViking/openviking/crypto/exceptions.py
T
MaojiaShengandopenviking ce998873f9 lisence: change the main lisence to AGPL-3.0 (#1085)
* lisence: change the main lisence from Apache-2.0 to AGPL-v3

* lisence: change the main lisence from Apache-2.0 to AGPL-v3

* lisence: change the main lisence from Apache-2.0 to AGPL-v3

---------

Co-authored-by: openviking <openviking@example.com>
2026-03-30 14:37:42 +08:00

54 lines
877 B
Python

# Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd.
# SPDX-License-Identifier: AGPL-3.0
"""
Encryption module exception definitions.
"""
class EncryptionError(Exception):
"""Base class for encryption-related errors."""
pass
class InvalidMagicError(EncryptionError):
"""Invalid magic number error."""
pass
class CorruptedCiphertextError(EncryptionError):
"""Corrupted ciphertext error."""
pass
class AuthenticationFailedError(EncryptionError):
"""Authentication tag verification failed error."""
pass
class KeyMismatchError(EncryptionError):
"""Key mismatch error."""
pass
class KeyNotFoundError(EncryptionError):
"""Key not found error."""
pass
class ConfigError(EncryptionError):
"""Configuration error."""
pass
class KMSError(EncryptionError):
"""KMS service error."""
pass