Files
notifications-api/app/exceptions.py
Rebecca Law 385653af44 Added a new exception type for DVLAException.
The Notify team needs to investigate when a notification is marked as failed.
We will process the whole file and mark the notifications with the appropriate status, if any are failed an exception is raised.
The exception will trigger a cloud watch error for the team to investigate.
2018-02-22 15:05:37 +00:00

4 lines
96 B
Python

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