gamesheet_sdk.common.exceptions¶
Exceptions raised by gamesheet_sdk.
The hierarchy is intentionally small: a single base class so callers can except GameSheetError to catch
anything this SDK raises. More specific subclasses will be added as concrete failure modes appear.
Exceptions
Raised when authentication against the GameSheet WebUI fails. |
|
Raised when the GameSheet API returns an HTTP 4xx/5xx error status code. |
|
Base class for every exception raised by |
|
Raised when a requested resource is not found (HTTP 404). |
|
Raised when access to a resource is forbidden (HTTP 403). |
|
Raised when the client is rate-limited (HTTP 429). |
|
Raised when client-side parameter validation fails. |
- exception gamesheet_sdk.common.exceptions.GameSheetError[source]¶
Bases:
ExceptionBase class for every exception raised by
gamesheet_sdk.- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gamesheet_sdk.common.exceptions.AuthenticationError[source]¶
Bases:
GameSheetErrorRaised when authentication against the GameSheet WebUI fails.
Covers both missing/incomplete credentials and active server-side rejection (the submit form does not redirect off the sign-in page within the allotted timeout).
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gamesheet_sdk.common.exceptions.GameSheetAPIError[source]¶
Bases:
GameSheetErrorRaised when the GameSheet API returns an HTTP 4xx/5xx error status code.
- Parameters:
Initialize GameSheetAPIError.
- Parameters:
- classmethod __new__(*args, **kwargs)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gamesheet_sdk.common.exceptions.GameSheetNotFoundError[source]¶
Bases:
GameSheetAPIErrorRaised when a requested resource is not found (HTTP 404).
Initialize GameSheetAPIError.
- Parameters:
- __init__(message, status_code, endpoint, response_body=None)¶
Initialize GameSheetAPIError.
- classmethod __new__(*args, **kwargs)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gamesheet_sdk.common.exceptions.GameSheetPermissionError[source]¶
Bases:
AuthenticationError,GameSheetAPIErrorRaised when access to a resource is forbidden (HTTP 403).
Initialize GameSheetAPIError.
- Parameters:
- __init__(message, status_code, endpoint, response_body=None)¶
Initialize GameSheetAPIError.
- classmethod __new__(*args, **kwargs)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gamesheet_sdk.common.exceptions.GameSheetRateLimitError[source]¶
Bases:
GameSheetAPIErrorRaised when the client is rate-limited (HTTP 429).
Initialize GameSheetAPIError.
- Parameters:
- __init__(message, status_code, endpoint, response_body=None)¶
Initialize GameSheetAPIError.
- classmethod __new__(*args, **kwargs)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gamesheet_sdk.common.exceptions.GameSheetValidationError[source]¶
Bases:
GameSheetErrorRaised when client-side parameter validation fails.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.