code: protected Response handleGenericError(Throwable exception, Throwable catched) {
  
      NlsRuntimeException userError;
      boolean logged = false;
      if (exception instanceof NlsThrowable) {
        NlsThrowable nlsError = (NlsThrowable) exception;
        if (!nlsError.isTechnical()) {
          LOG.warn("Service failed due to business error: {}", nlsError.getMessage());
          logged = true;
        }
        userError = TechnicalErrorUserException.getOrCreateUserException(exception);
      } else {
        userError = TechnicalErrorUserException.getOrCreateUserException(catched);
      }
      if (!logged) {
        LOG.error("Service failed on server", userError);
      }
      return createResponse(userError);
    }
docs: Exception handling for generic exception (fallback).
  
  @param exception the exception to handle
  @param catched the original exception that was cached. Either same as {@code error} or a (child-)
  {@link Throwable#getCause() cause} of it.
  @return the response build from the exception