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.
This commit is contained in:
Rebecca Law
2018-02-22 15:05:37 +00:00
parent 01ed4e1e56
commit 385653af44
4 changed files with 56 additions and 24 deletions

3
app/exceptions.py Normal file
View File

@@ -0,0 +1,3 @@
class DVLAException(Exception):
def __init__(self, message):
self.message = message