Gemorroj/Image_Barcode2 — comment on commit fa1f65394977d520e6ea9f4d65069019c2582261
File: Image/Barcode2.php line 99
By CloCkWeRX:

I was sort of keen to retain this exception - http://au2.php.net/manual/en/class.invalidargumentexception.php - in areas like this.

One of the problems we've got as a lot of frameworks out there repeating each other's work (http://pooteeweet.org/blog/2008). The only current way to fix it is to shift a lot of the common definitions/interfaces into php-core.

Since SPL exceptions are already in the core and common, my preference is to use that over specific package exceptions when it logically fits.