Files
notifications-api/app/exceptions.py
Rebecca Law ae1bc54f9e Update NotificationTechnicalFailureException
- Change the NotificationTechnicalFailureException so that it only inherits from Exception.
- The notify_celery task should create the logging message on failure.
- Fix unit tests
- Remove named parameter when raising exception.
2019-08-12 16:51:39 +01:00

12 lines
215 B
Python

class DVLAException(Exception):
def __init__(self, message):
self.message = message
class NotificationTechnicalFailureException(Exception):
pass
class ArchiveValidationError(Exception):
pass