mantelo.exceptions#

Module Contents#

exception mantelo.exceptions.AuthenticationException#

Bases: Exception

Exception raised when the authentication fails with “401 Unauthorized” status code.

error: str#

The error message from Keycloak.

error_description: str#

The error description from Keycloak.

response: requests.Response#

The response object from the server.

exception mantelo.exceptions.HttpException#

Bases: Exception

Exception raised on HTTP errors when talking to the Keycloak Admin API.

status_code: int#

The HTTP status code.

json: str#

The JSON response from the server.

url: str#

The URL that was requested.

response: requests.Response#

The response object from the server.

classmethod from_slumber_exception(ex: slumber.exceptions.SlumberHttpBaseException)#