Coverage for src/onepass_env/exceptions.py: 0%
12 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-18 11:04 -0300
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-18 11:04 -0300
1"""Custom exceptions for 1pass-env."""
4class OnePassEnvError(Exception):
5 """Base exception for 1pass-env errors."""
7 def __init__(self, message: str):
8 super().__init__(message)
9 self.message = message
12class AuthenticationError(OnePassEnvError):
13 """Raised when authentication with 1Password fails."""
14 pass
17class VaultError(OnePassEnvError):
18 """Raised when there's an issue with the 1Password vault."""
19 pass
22class ConfigurationError(OnePassEnvError):
23 """Raised when there's a configuration issue."""
24 pass
27class ValidationError(OnePassEnvError):
28 """Raised when input validation fails."""
29 pass