exception documentation
class TokenRequestError(DatagraphsError):
Constructor: TokenRequestError(status_code, errors, message)
Raised when an auth token cannot be obtained for a reason other than rejected credentials.
The token endpoint failed or could not be reached, so the request that needed the token was never sent.
| Method | __init__ |
Undocumented |
| Instance Variable | errors |
The error details for the failure. |
| Instance Variable | result |
When this stopped a Client.put, Gateway.load_data or Gateway.dump_data part-way, the outcome of what it did before stopping (a PutResult, LoadResult or DumpResult), accounting for what it did not do; otherwise ... |
| Instance Variable | status |
The token endpoint's HTTP status, or None when no response was received (the underlying requests exception, e.g. a ReadTimeout, is then the __cause__). |
When this stopped a Client.put, Gateway.load_data or
Gateway.dump_data part-way, the outcome of what it did before
stopping (a PutResult, LoadResult or DumpResult), accounting for
what it did not do; otherwise None.
status_code =
¶
The token endpoint's HTTP status, or None when no response was received (the underlying requests exception, e.g. a ReadTimeout, is then the __cause__).