/** * Constructs this exception handler - registers itself as the default exception handler. */ public function __construct() { parent::__construct(); set_exception_handler(array($this, 'handleException')); }