}
}
}
if(!isSuccess){
if(!reviewboardReader.getErrorCode(resultContent).equals( UPLOADTOSERVER_FAIL_FILE_CODE )){
throw new OperationException("Error When Uploading Diff for review_request_id = "+ reviewRequestId
+", error information is:" + reviewboardReader.getErrorMessage(resultContent)
+",the resultContent from the server is:"+resultContent);
}else{
DiffUploadErrorBean diffUploadErrorBean = reviewboardReader.getDiffUploadErrorBean(resultContent);
StringBuilder errorInfoSB = new StringBuilder();
errorInfoSB.append("review_request_id = "+ reviewRequestId +"的Request在上传diff时,出现错误,错误原因一般是因为下面之一:");
errorInfoSB.append(System.getProperty("line.separator"));
errorInfoSB.append("(1)请仔细检查本地的SVN版本和文件,以及上传时指定的Base Directory");
errorInfoSB.append(System.getProperty("line.separator"));
errorInfoSB.append("(2)您不具备该目录的SVN权限;或者您在ReviewBoard服务器尚未配置该目录;");
errorInfoSB.append(System.getProperty("line.separator"));
errorInfoSB.append("服务器端返回的错误详情:ReviewBoard服务器找不到SVN文件:"
+ diffUploadErrorBean.getFile()+",revision="+diffUploadErrorBean.getRevision());
throw new OperationException(errorInfoSB.toString());
}
}
}