mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-26 07:38:18 -05:00
change error code fro UnknownBackendResponse
This commit is contained in:
@@ -23,16 +23,16 @@ class BackendError(ApplicationError):
|
||||
super().__init__(4, message, data)
|
||||
|
||||
|
||||
class UnknownBackendResponse(ApplicationError):
|
||||
def __init__(self, message="Backend responded in unknown way", data=None):
|
||||
super().__init__(4, message, data)
|
||||
|
||||
|
||||
class TooManyRequests(ApplicationError):
|
||||
def __init__(self, message="Too many requests. Try again later", data=None):
|
||||
super().__init__(5, message, data)
|
||||
|
||||
|
||||
class UnknownBackendResponse(ApplicationError):
|
||||
def __init__(self, message="Backend responded in unknown way", data=None):
|
||||
super().__init__(6, message, data)
|
||||
|
||||
|
||||
class InvalidCredentials(ApplicationError):
|
||||
def __init__(self, message="Invalid credentials", data=None):
|
||||
super().__init__(100, message, data)
|
||||
|
||||
Reference in New Issue
Block a user