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

1"""Custom exceptions for 1pass-env.""" 

2 

3 

4class OnePassEnvError(Exception): 

5 """Base exception for 1pass-env errors.""" 

6 

7 def __init__(self, message: str): 

8 super().__init__(message) 

9 self.message = message 

10 

11 

12class AuthenticationError(OnePassEnvError): 

13 """Raised when authentication with 1Password fails.""" 

14 pass 

15 

16 

17class VaultError(OnePassEnvError): 

18 """Raised when there's an issue with the 1Password vault.""" 

19 pass 

20 

21 

22class ConfigurationError(OnePassEnvError): 

23 """Raised when there's a configuration issue.""" 

24 pass 

25 

26 

27class ValidationError(OnePassEnvError): 

28 """Raised when input validation fails.""" 

29 pass