<filename>fastemplate/exceptions/user.py
from fastemplate.exceptions import FastemplateBaseException


class InvalidUsernameOrPassword(FastemplateBaseException):
    """
    Thrown whenever user credentials are wrong.
    """

    def __init__(self, message: str):
        name = 'InvalidUsernameOrPassword'
        super().__init__(400, message, name)


class NiceTryMeowNowGoBack(FastemplateBaseException):
    """
    Thrown whenever my cat tries to login as owner.
    """

    def __init__(self, message: str):
        name = 'NiceTryMeowNowGoBack'
        super().__init__(401, message, name)


class InvalidAuthCredentials(FastemplateBaseException):
    """
    Thrown whenever request has the correct token but invalid username or password.
    """

    def __init__(self, message: str):
        name = 'InvalidAuthCredentials'
        super().__init__(401, message, name)
