protected function throwError($errno, $errstr, $errfile, $errline)
        {
            $msg = "";

            switch ($errno) {
                case E_USER_ERROR:
                case E_USER_WARNING:
                    $msg .= "<b>ERROR</b> [$errno] $errstr<br />\n";
                    $msg .= "  Fatal error on line $errline in file $errfile";
                    $msg .= ", PHP " . PHP_VERSION . " (" . PHP_OS . ")<br />\n";
                    $msg .= "Aborting...<br />\n";

                    throw new Exception($msg);
                    //exit(1);
                break;

                case E_USER_NOTICE:
                default:
            }

            // Don't execute PHP internal error handler
            return true;
        }