...

/

Graceful Communication between Services

Graceful Communication between Services

Learn the significance of clear error messages, custom exceptions, and a unified error-handling framework with HTTP return codes.

Everyone at some point has experienced an issue with a website or application where an error message will pop up that means absolutely nothing to the end user. Sometimes, there’s no error message at all. Other times, it can be a complete stack trace dump that appears in the error message. Either of these scenarios is far from optimal because the impact on the user is detrimental and could potentially share information about the code base if messages aren’t adjusted.

Implementation of a common error-handling framework

The same can be true for messages tracked in logs. If no information is sent about a potential error or exception, finding out what happened and how to fix it becomes very challenging. It’s important not only to the usability of the system but the maintenance of it as well to have clear, meaningful messages meant for each type of audience.

A common way to manage exception messaging is through the development of exception types that derive from ...