private void throwWorkExceptionIfHasExption(RspList<ResponseValues> rspList) throws WorkException { if (rspList != null && rspList.getFirst() != null) { for (Rsp<ResponseValues> rsp : rspList) { if (rsp.hasException()) { Throwable t = rsp.getException(); if (t instanceof WorkException) { throw (WorkException)t; } else { WorkException we = new WorkException(rsp.getException().getMessage()); we.initCause(rsp.getException()); throw we; } } } } }