Source code for fastlife.exceptions

# fastlife.exceptions
# Exception and warnings hierarchy for use with fastlife.
#
# Author:   Benjamin Bengfort <benjamin@bengfort.com>
# Created:  Sun Jul 26 11:38:51 2020 -0400
#
# Copyright (C) 2020 Bengfort.com
# For license information, see LICENSE
#
# ID: exceptions.py [] benjamin@bengfort.com $

"""
Exception and warnings hierarchy for use with fastlife.
"""

##########################################################################
## Exception Hierarchy
##########################################################################

[docs]class FastlifeError(Exception): pass
[docs]class FastlifeTypeError(FastlifeError, TypeError): pass
[docs]class FastlifeValueError(FastlifeError, ValueError): pass
[docs]class ConsoleError(FastlifeError): pass
########################################################################## ## Warnings Hierarchy ##########################################################################
[docs]class FastlifeWarning(UserWarning): pass