Commit b2777122 by zhangkb

修改返回值

parent 7a6d31dc
......@@ -43,8 +43,7 @@ public class IndCatalogCtrl {
try {
indCatalog = indCatalogService.saveOrUpdate(indCatalog);
} catch (Exception e) {
e.printStackTrace();
throw new ApiException("存在同名目录110");
throw new ApiException();
}
LogManager.logInfo(Constants.LOG_INDICATOR_BASE_INDI_API,message,indCatalog.getCatalogName());
return indCatalog.getId();
......
......@@ -5,7 +5,4 @@ import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR,reason="server error")
public class ApiException extends Exception{
public ApiException(String msg) {
super(msg);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment