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-12 08:12:27 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
663021e494552013ef8eca85db69eddfc68ca708
notifications-api/app/exceptions.py

9 lines
218 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
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 3405ms Template: 76ms
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