示例#1
0
            $errorHandler = Handler::getInstance();
            if ($errorHandler->isNull()) {
                $str = sprintf(static::FORMAT, $code, $str);
                parent::Output($str);
            } else {
                new Error\OutputError($str, $code);
            }
        }
    }
    static function notice($str)
    {
        static::Output('NOTICE', $str, E_NOTICE);
    }
    static function warning($str)
    {
        static::Output('WARN', $str, E_NOTICE);
    }
    static function error($str)
    {
        static::Output('ERROR', $str, E_NOTICE);
    }
    static function fatal($str, $exit = true)
    {
        static::Output('FATAL', $str, E_NOTICE);
        if ($exit) {
            exit;
        }
    }
}
Error::Init();