pfunk.exceptions

View Source
class LoginFailed(Exception):
    """Exception raised when an attempt to login fails."""
    pass


class DocNotFound(Exception):
    """Exception raised when a document is not found."""
    pass


class TokenValidationFailed(Exception):
    """Exception raised when a JWT validation fails"""
    pass


class Unauthorized(Exception):
    """Exception raised when the request is not authorized"""
    pass


class GraphQLError(Exception):
    """Graphql SyntaxError"""
    pass
#   class LoginFailed(builtins.Exception):
View Source
class LoginFailed(Exception):
    """Exception raised when an attempt to login fails."""
    pass

Exception raised when an attempt to login fails.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
#   class DocNotFound(builtins.Exception):
View Source
class DocNotFound(Exception):
    """Exception raised when a document is not found."""
    pass

Exception raised when a document is not found.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
#   class TokenValidationFailed(builtins.Exception):
View Source
class TokenValidationFailed(Exception):
    """Exception raised when a JWT validation fails"""
    pass

Exception raised when a JWT validation fails

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
#   class Unauthorized(builtins.Exception):
View Source
class Unauthorized(Exception):
    """Exception raised when the request is not authorized"""
    pass

Exception raised when the request is not authorized

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
#   class GraphQLError(builtins.Exception):
View Source
class GraphQLError(Exception):
    """Graphql SyntaxError"""
    pass

Graphql SyntaxError

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args