Ejemplo n.º 1
0
  protected ResultType handleClientException(
      GenericClient theClient, Exception e, ModelMap theModel) {
    ResultType returnsResource;
    returnsResource = ResultType.NONE;
    ourLog.warn("Failed to invoke server", e);

    if (theClient.getLastResponse() == null) {
      theModel.put("errorMsg", "Error: " + e.getMessage());
    }

    return returnsResource;
  }