Category Archives: PHP Exception Handling

Facing a problem that’s giving you fits? Want to expand your knowledge of PHP? Just want to do some pleasure reading on the topic of PHP exception handling (errr…)? You’ve come to the right place!

The Airbrake blog’s PHP exception handling category is full of tips and tricks to keep you in the know! These articles consist of exception profiles, examples, PHP news from the Airbrake team and more! We try to keep this section as up to date as possible, and welcome your feedback! If you ever have a topic you want us to discuss at greater length, feel free to write andrew@airbrake.io, and we’ll write something up just for you.

If you’re looking for solution to help you stay on top of your PHP code, we’ve got you covered. Take a look at Airbrake’s PHP Error Reporter, which will help you with all of your PHP exception handling needs!

Happy Airbraking!

PHP Exception Handling: PHP Exception Class Hierarchy

PHP Exception Handling: UnexpectedValueException

Today we’ll look at UnexpectedValueException – the runtime-only version of  UnexpectedValueException. Read on to see how to add this to your PHP exception handling repertoire! The Technical Rundown: All SPL exceptions extend either LogicException or RuntimeException. UnexpectedValueException extends RuntimeException. UnexpectedValueException is thrown if a value does not match with a set of values. When… continue reading →

PHP Exception Handling: PHP Exception Class Hierarchy

PHP Exception Handling: InvalidArgumentException

Today in the PHP Exception Handling series, we’ll take a look at one of PHP’s built in exception classes. Specifically, we’re looking at InvalidArgumentException, what it means, and when it’s most useful! Built in exceptions like this one help make PHP exception handling a breeze! Let’s get to it… The Technical Rundown: All SPL exceptions extend either… continue reading →