Logo
Explore Help
Sign In
darkhelm/notifications-api
1
0
Fork 0
You've already forked notifications-api
mirror of https://github.com/GSA/notifications-api.git synced 2025-12-21 16:01:15 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
5b9e6c2086c5d4b9ffad2e0c5847f372f994c70c
notifications-api/app/exceptions.py

13 lines
270 B
Python
Raw Normal View History

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
class DVLAException(Exception):
def __init__(self, message):
self.message = message
Throw an exception whenever we updated a notification to technical failure. If this is happening we want to know about it.
2018-03-16 17:18:44 +00:00
class NotificationTechnicalFailureException(Exception):
def __init__(self, message):
self.message = message
Add DAO function and endpoint for archiving email reply_to addresses Added a new DAO function which archives email reply_to addresses by setting archived to True. This raises a new type of error, an ArchiveValidationError, if trying to archive a default reply_to address. Added a new endpoint for archiving email reply_to addresses.
2018-04-25 16:34:36 +01:00
class ArchiveValidationError(Exception):
pass
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 3595ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API