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);
    }