I often do a base class first and then extend from them our custom exceptions. In your case you might have to base classes `EventException` and `EventTypeException`. [See](https://github.com/wlanslovenija/nodewatcher/blob/development/nodewatcher/core/frontend/components/exceptions.py).