Company
Date Published
Author
Samuel Mendes
Word count
1003
Language
English
Hacker News points
None

Summary

The Java and Spring sample application demonstrates how to push SMS alerts on server exceptions using the Twilio REST API. The application handles all application exceptions globally, sending a custom message to a list of administrators via SMS when something goes unexpectedly wrong. The list of administrators is loaded from a JSON file using the Gson library. The application uses the Twilio REST client to send messages and includes features such as error logging and exception handling.