Newer
Older
gnexus-auth-client-py / src / gnexus_gauth / exceptions.py
@Eugene Sukhodolskiy Eugene Sukhodolskiy 21 hours ago 958 bytes Initial scaffold of gnexus-gauth Python client library
"""Exception hierarchy for gnexus-gauth."""


class GAuthException(RuntimeError):
    """Root package exception."""


class ConfigurationException(GAuthException):
    """Invalid configuration."""


class StateValidationException(GAuthException):
    """Invalid or missing authorization state."""


class PkceException(GAuthException):
    """Invalid or missing PKCE verifier."""


class TokenExchangeException(GAuthException):
    """Token exchange failed."""


class TokenRefreshException(GAuthException):
    """Token refresh failed."""


class TokenRevokeException(GAuthException):
    """Token revoke failed."""


class TransportException(GAuthException):
    """HTTP transport failure."""


class RuntimeApiException(GAuthException):
    """Runtime API returned an error."""


class WebhookVerificationException(GAuthException):
    """Invalid webhook signature."""


class WebhookPayloadException(GAuthException):
    """Malformed webhook payload."""