Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

877 B
Raw Blame
# 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