# Path: doac/exceptions/base.py
# class InvalidRequest(Exception):
#     error = "invalid_request"


from .base import InvalidRequest
    reason = "The authorization code was already used to get a refresh token."


class AuthorizationCodeNotProvided(InvalidRequest):
    reason = "The authorization code was not provided."


class AuthorizationCodeNotValid(InvalidRequest):
    reason = "The authorization code was malformed or invalid."


class ClientNotProvided(InvalidRequest):
    reason = "The client was not provided."


class ClientSecretNotProvided(InvalidRequest):
    reason = "The client secret was not provided."


class CredentialsNotProvided(InvalidRequest):
    reason = "No credentials were provided to authenticate the request to view this page."


class RedirectUriDoesNotValidate(InvalidRequest):
    reason = "The redirect URI does not validate against the client host."
    can_redirect = False


class RedirectUriNotProvided(InvalidRequest):
    reason = "The redirect URI was not provided."

# Path: doac/exceptions/base.py
# class InvalidRequest(Exception):
#     error = "invalid_request"


# Path: doac/exceptions/invalid_request.py
from .base import InvalidRequest

    reason = "The authorization code was already used to get a refresh token."


class AuthorizationCodeNotProvided(InvalidRequest):
    reason = "The authorization code was not provided."


class AuthorizationCodeNotValid(InvalidRequest):
    reason = "The authorization code was malformed or invalid."


class ClientNotProvided(InvalidRequest):
    reason = "The client was not provided."


class ClientSecretNotProvided(InvalidRequest):
    reason = "The client secret was not provided."


class CredentialsNotProvided(InvalidRequest):
    reason = "No credentials were provided to authenticate the request to view this page."


class RedirectUriDoesNotValidate(InvalidRequest):
    reason = "The redirect URI does not validate against the client host."
    can_redirect = False


class RedirectUriNotProvided(InvalidRequest):
    reason = "The redirect URI was not provided."

    can_redirect = False