mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Use custom SeedPassError instead of sys.exit
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
class VaultLockedError(Exception):
|
||||
"""Compatibility layer for historic exception types."""
|
||||
|
||||
from .core.errors import SeedPassError
|
||||
|
||||
|
||||
class VaultLockedError(SeedPassError):
|
||||
"""Raised when an operation requires an unlocked vault."""
|
||||
|
||||
pass
|
||||
def __init__(self, message: str = "Vault is locked") -> None:
|
||||
super().__init__(message)
|
||||
|
||||
|
||||
__all__ = ["VaultLockedError", "SeedPassError"]
|
||||
|
Reference in New Issue
Block a user