Programmers naturally give more attention to a “happy path” – default scenario in application execution in which everything works as expected, often neglecting the opposite way things can go. Topics such as the use of exceptions and error handling seem insufficiently explored, so it is difficult to find useful resources online. Things usually end up with reckless throwing of built-in exceptions and leaving up error handling to the framework.
In this highly practical talk full of applicable code examples, you will learn how to deal with exceptional conditions in an elegant way, you will master some essential techniques for structuring and modeling custom Exceptions, and learn how to establish reusable Central Error Handling system.
Special attention is given to a set of best practices and techniques around exceptions, such as formatting exception messages, component-level exception type, exception wrapping. Combined with the universal central error handler that also defines behavioural interfaces to allow exceptions to affect the error handling workflow, these concepts together make up an efficient error handling architecture that scales very well and is easy to maintain.