"""Exceptions that are raised at various parts of this library."""fromtypingimportTYPE_CHECKING,AnyifTYPE_CHECKING:fromsimple_openid_connect.dataimportAuthenticationErrorResponse
[docs]classOpenidProtocolError(Exception):""" A generic error that is raised when the OpenID protocol was irrecoverably violated """
[docs]classImpossibleOperationError(OpenidProtocolError):""" This error indicates that an intended operation could not be performed because it is not possible under the current configuration """pass
[docs]classUnsupportedByProviderError(OpenidProtocolError):""" This error indicates that a desired feature is not supported by the OpenID Provider """pass
[docs]classAuthenticationFailedError(Exception):""" A previous authentication attempt has failed """