mantelo.exceptions
==================

.. py:module:: mantelo.exceptions


Exceptions
----------

.. autoapisummary::

   mantelo.exceptions.AuthenticationException
   mantelo.exceptions.HttpException


Module Contents
---------------

.. py:exception:: AuthenticationException

   Bases: :py:obj:`Exception`


   Exception raised when the authentication request fails with a `401 Unauthorized` status code.


   .. py:attribute:: error
      :type:  str

      The error message from Keycloak.



   .. py:attribute:: error_description
      :type:  str

      The error description from Keycloak.



   .. py:attribute:: response
      :type:  requests.Response

      The response object from the server.



.. py:exception:: HttpException

   Bases: :py:obj:`Exception`


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


   .. py:attribute:: status_code
      :type:  int

      The HTTP status code.



   .. py:attribute:: json
      :type:  str

      The JSON response from the server.



   .. py:attribute:: url
      :type:  str

      The URL that was requested.



   .. py:attribute:: response
      :type:  requests.Response

      The response object from the server.



   .. py:method:: from_slumber_exception(ex: slumber.exceptions.SlumberHttpBaseException)
      :classmethod:



