mirror of
https://github.com/onyx-and-iris/vban-cli.git
synced 2026-04-18 11:23:31 +00:00
enable rich tracebacks
console, error_console are now app attributes.
This commit is contained in:
14
src/vban_cli/error.py
Normal file
14
src/vban_cli/error.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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."""
|
||||
Reference in New Issue
Block a user