Session

Effective error handling: the exception rather than the rule?

Nowadays you probably use exceptions to signal error conditions in your code. But do you have a comprehensive strategy for how to apply them in practice? Can you ensure that your exceptions are delivered to the correct audience, or do you get complaints from end users about technical error messages and spam your engineers when a user enters incorrect input? Do you use a sensible type hierarchy for exceptions and apply them at the correct level of abstraction? Do you know the correct place to catch the exceptions that arise form your code?

It's no shame if you struggle with some of these issues, because good error handling takes care and is actually hard. In this talk, I will present you some simple principles and best practices to build an error handling strategy that actually works! We will see how you can make your debugging more effective and your users happier. Because good error handling should not be an exception!

This talk is based on the best practices and principles I blogged about in https://moxio.com/blog/best-practices-for-php-exception-handling/.

Arnout Boks

Software architect at Moxio

Maassluis, The Netherlands

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top