[docs]
class AuthRespParsingException(Exception):
"""Raised when the http request corresponding to an authorization response is malformed."""
pass
[docs]
class AuthRespValidationException(Exception):
"""Raised when the http request corresponding to an authorization response is well formed,
but not valid (for example, it might be wrapped in an expired token).
"""
pass
[docs]
class InvalidVPToken(Exception):
"""
Raised when a given VP is invalid
"""
pass
[docs]
class NotKBJWT(Exception):
"""
Raised when a given VP format is not Key Binding JWT format
"""
pass
[docs]
class MissingIssuer(Exception):
"""
Raised when a given VP not contain the issuer
"""
pass
[docs]
class MdocCborValidationError(Exception):
"""
Raised when a given VP not contain the issuer
"""
pass
[docs]
class VPExpired(Exception):
"""
Raised when a given VP is expired
"""
pass
[docs]
class VPRevoked(Exception):
"""
Raised when a given VP is revoked
"""
pass