Base Exception Library for PHP 5.5+