public function actionError(RequestApplicationInterface $app, \Throwable $exception) {
        $logMessage = get_class($exception);
        if ($exception->getMessage()) {
            $logMessage .= "\n" . $exception->getMessage();
        }
        if ($exception->getFile() || $exception->getLine()) {
            $logMessage .= "\n" . $exception->getFile() . ":" . $exception->getLine();
        }
        \Reaction::$app->logger->logRaw($logMessage);
    }
public function actionError(RequestApplicationInterface $app, \Throwable $exception) {
        $logMessage = get_class($exception);
        if ($exception->getMessage()) {
            $logMessage .= "\n" . $exception->getMessage();
        }
        if ($exception->getFile() || $exception->getLine()) {
            $logMessage .= "\n" . $exception->getFile() . ":" . $exception->getLine();
        }
        \Reaction::$app->logger->logRaw($logMessage);
    }
public function actionError ( RequestApplicationInterface $ app , \ Throwable $ exception ) { $ logMessage = get_class ( $ exception ) ; if ( $ exception -> getMessage ( ) ) { $ logMessage .= "\n" . $ exception -> getMessage ( ) ; } if ( $ exception -> getFile ( ) || $ exception -> getLine ( ) ) { $ logMessage .= "\n" . $ exception -> getFile ( ) . ":" . $ exception -> getLine ( ) ; } \ Reaction :: $ app -> logger -> logRaw ( $ logMessage ) ; }
Show error to user
@param RequestApplicationInterface $app
@param \Throwable                  $exception
Show error to user