SError::exception_handler PHP 메소드

exception_handler() 공개 정적인 메소드

public static exception_handler ( $e )
    public static function exception_handler($e)
    {
        //PHP7 Throwable
        $log = SError::getError($e->getTrace(), $e);
        if (SError::$CONSOLE) {
            echo $log;
        }
        if (SError::$LOG) {
            if (!empty(SError::$LOGFILE)) {
                error_log($log, 3, SError::$LOGFILE);
            } else {
                error_log($log);
            }
        }
    }