mirror of
https://github.com/socialwifi/RouterOS-api.git
synced 2025-08-31 07:09:48 +02:00
28 lines
619 B
Python
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
|