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.

Comments

Comments are closed.

Nothing new brought to the table

Jean-Bernard at 17:54 on 10 Nov 2019

Interesting thanks !

I've attended your talk via live streaming! Great talk! The first part was really exceptional! :)

As feedback, I can find only two things that can be improved:
1) the UML diagram for who does not know UML is really a misery... maybe finding a better way to explain the same concept
2) in the last part, when talking about the global error handler, the marker interfaces used to provide custom http codes, DoNotLog behaviors and similar things, to me are code smells. example: TodoNotValid is a domain exception and should not be aware of the infrastructure layer HTTP error code

Except of those two points, great presentation!

Good staff thanks. It is enlighting and useful

Spiridon at 20:06 on 11 Nov 2019

Thanks for the slides!

Great knowledge, great examples, although a bit monotonous voice while talking

Miro Svrtan at 08:52 on 14 Nov 2019

I've already seen this talk, it's a great material.

I know English is not speakers 1st language and it was presented on the last slot of the 2nd day of the conference where everybody was already tired but I think speaker should work a bit on the fluency of the talking/presenting.

Still, I learned a lot from this talk and will improve on some of my code from the given suggestions!

Nikola D. at 11:16 on 14 Nov 2019

I followed this talk via live stream. This talk had a well thought out story and flow. Examples are one of the hardest things to come up with, and these were quite cleverly made.

Even though the speaker could have been more energetic at certain points, he was able to deliver explanations in a very clear and understandable manner. Excellent job.

Milana Cap at 17:57 on 18 Nov 2019

Excellent examples and in depth explanations. A lot of knowledge and experience is built into this talk.

Thank you Nikola.