public function __construct() { // setup parent try { parent::__construct(); } catch (Exception $e) { // handle error $GLOBALS['Error']->handle_error($e); } }