socialwifi.RouterOS-api/routeros_api/exceptions.py
Jakub Gocławski e1a2eabc08
Add linters.
2024-05-28 15:35:00 +02:00

28 lines
619 B
Python

class RouterOsApiError(Exception):
pass
class RouterOsApiConnectionError(RouterOsApiError):
pass
class FatalRouterOsApiError(RouterOsApiError):
pass
class RouterOsApiParsingError(RouterOsApiError):
pass
class RouterOsApiCommunicationError(RouterOsApiError):
def __init__(self, message, original_message):
super(RouterOsApiCommunicationError, self).__init__(message, original_message)
self.original_message = original_message
class RouterOsApiFatalCommunicationError(RouterOsApiError):
pass
class RouterOsApiConnectionClosedError(RouterOsApiConnectionError):
pass