<filename>symmetric/errors.py
"""
Module to hold every custom exception.
"""


class AppImportError(Exception):
    """
    Exception for when there's an error finding the symmetric object inside
    the specified module.
    """


class AuthenticationRequiredError(Exception):
    """
    Exception for when an endpoint requires authentication and the request
    fails to provide the correct authentication token.
    """


class IncorrectRouteFormatError(Exception):
    """
    Exception for when an endpoint route is incorrectly defined (it does
    not follow the expected route format).
    """


class DuplicatedRouteError(Exception):
    """
    Exception for when an endpoint route is already in the added endpoints.
    """


class InvalidTokenNameError(Exception):
    """
    Exception for when a token name is not a string or is an empty string.
    """

<filename>symmetric/errors.py
"""
Module to hold every custom exception.
"""


class AppImportError(Exception):
    """
    Exception for when there's an error finding the symmetric object inside
    the specified module.
    """


class AuthenticationRequiredError(Exception):
    """
    Exception for when an endpoint requires authentication and the request
    fails to provide the correct authentication token.
    """


class IncorrectRouteFormatError(Exception):
    """
    Exception for when an endpoint route is incorrectly defined (it does
    not follow the expected route format).
    """


class DuplicatedRouteError(Exception):
    """
    Exception for when an endpoint route is already in the added endpoints.
    """


class InvalidTokenNameError(Exception):
    """
    Exception for when a token name is not a string or is an empty string.
    """

Module to hold every custom exception. Exception for when there's an error finding the symmetric object inside     the specified module. Exception for when an endpoint requires authentication and the request     fails to provide the correct authentication token. Exception for when an endpoint route is incorrectly defined (it does     not follow the expected route format). Exception for when an endpoint route is already in the added endpoints. Exception for when a token name is not a string or is an empty string.