Custom exceptions used throughout red_utils. These exceptions can be imported & raised in your own code.
For example, to use CustomException as a base class for a new exception specific to your app:
| exceptions.py |
|---|
| from red_utils.exc import CustomException
class MyException(CustomException):
## Class inherits the 'msg' and 'errors' class variables from CustomException.
# Define a new variable just for this exception
level: int = 0
|