# Copyright (c) 2025 CoReason, Inc.
#
# This software is proprietary and dual-licensed.
# Licensed under the Prosperity Public License 3.0 (the "License").
# A copy of the license is available at https://prosperitylicense.com/versions/3.0.0
# For details, see the LICENSE file.
# Commercial use beyond a 30-day trial requires a separate license.
#
# Source Code: https://github.com/CoReason-AI/coreason_vault


class VaultConnectionError(Exception):
    """Raised when Vault is unreachable or authentication fails.

    Serves as a circuit breaker indicator as per PRD requirements.
    """

    pass


class SecretNotFoundError(Exception):
    """Raised when a path exists but the key is missing.

    Indicates a logical error or missing configuration in Vault.
    """

    pass


class EncryptionError(Exception):
    """Raised when the Transit backend rejects an encryption or decryption request.

    This may occur due to invalid keys, contexts, or network failures.
    """

    pass
