code: private void processResponseWrapper(Response response, boolean isFailure) {
          try {
              ResponseImpl responseImpl = (ResponseImpl)response;
              if (isFailure || !responseImpl.isRedirect()) {
                  processResponse(response);
              } else {
                  processRedirectResponse(response);
              }
          } catch (Throwable t) {
              logger.error("processResponseWrapper caught exception: " + t.getLocalizedMessage());
              listener.onFailure(response, t, null);
          }
      }
docs: Called from onSuccess and onFailure. Handles all possible exceptions and notifies the listener
  if an exception occurs.
  
  @param response  server response
  @param isFailure specifies whether this method is called from onSuccess (false) or onFailure (true).