PHP exception handling.
I normally post tutorials, how-tos or the likes. This post is a little bit different than the others. It’s more like a thought that I came across when I finally decided to use PHP’s exception handling.
Here’s the basic form of PHP’s exception handling.
try {
// Do something
} catch (DataErrorException $e) {
// Handle data error here
} catch [...]