public static function exceptionHandler($exception)
    {
        if (DEBUG) {
            self::outputErrorHtml($exception->getMessage(), @$exception->timestamp, $exception->getFile(), $exception->getLine(), $exception);
        }
        elseif ($exception instanceof ConfigurationException) {
            self::outputErrorHtml("Configuration error", @$exception->timestamp, false, false, "Please contact administrator.");
        }
        
        error_log($exception);
    }