vban-cmd-python/vban_cmd/error.py

14 lines
390 B
Python
Raw Normal View History

class VBANCMDError(Exception):
"""Base VBANCMD Exception class. Raised when general errors occur"""
def __init__(self, msg):
self.message = msg
super().__init__(self.message)
def __str__(self):
return f"{type(self).__name__}: {self.message}"
2023-06-25 13:51:30 +01:00
class VBANCMDConnectionError(VBANCMDError):
2023-06-25 02:06:02 +01:00
"""Exception raised when connection/timeout errors occur"""