mirror of
https://github.com/onyx-and-iris/vban-cli.git
synced 2026-03-25 00:09:12 +00:00
15 lines
388 B
Python
15 lines
388 B
Python
class VbanCLIError(Exception):
|
|
"""Base class for exceptions in this module."""
|
|
|
|
def __init__(self, message: str, code: int = 1):
|
|
super().__init__(message)
|
|
self.code = code
|
|
|
|
|
|
class VbanCLIConnectionError(VbanCLIError):
|
|
"""Exception raised for connection errors."""
|
|
|
|
|
|
class VbanCLIValidationError(VbanCLIError):
|
|
"""Exception raised for validation errors."""
|