diff --git a/exceptions.py b/exceptions.py index af3c23a..8c26d56 100644 --- a/exceptions.py +++ b/exceptions.py @@ -29,16 +29,6 @@ class ReloadRequest(MinerException): super().__init__("Application was requested to reload entirely") -class RequestInvalid(MinerException): - """ - Raised when a request becomes no longer valid inside its retry loop. - - Intended for internal use only. - """ - def __init__(self): - super().__init__("Request became invalid during its retry loop") - - class RequestException(MinerException): """ Raised for cases where a web request doesn't return what we wanted it to. @@ -50,6 +40,16 @@ class RequestException(MinerException): super().__init__("Unknown error during request") +class RequestInvalid(RequestException): + """ + Raised when a request becomes no longer valid inside its retry loop. + + Intended for internal use only. + """ + def __init__(self): + super().__init__("Request became invalid during its retry loop") + + class WebsocketClosed(RequestException): """ Raised when the websocket connection has been closed.