code: public Error getError(AuthzTrans trans, Future<?> fp) {
  //		try {
  			String text = fp.body();
  			Error err = new Error();
  			err.setMessageId(Integer.toString(fp.code()));
  			if(text==null || text.length()==0) {
  				err.setText("**No Message**");
  			} else {
  				err.setText(fp.body());
  			}
  			return err;
  //		} catch (APIException e) {
  //			Error err = new Error();
  //			err.setMessageId(Integer.toString(fp.code()));
  //			err.setText("Could not obtain response from AAF Message: " + e.getMessage());
  //			return err;
  //		}
  	}
docs: Derive API Error Class from AAF Response (future)