内部调用其他服务抛出的异常处理

try {
            requisition_no = this.testDocumentId(info);// 获取申请单号
        } catch (java.lang.reflect.InvocationTargetException targetE) {
            throw new DWBusinessException("自动生成单号失败:"+targetE.getTargetException().getMessage());
        } catch (Exception e){
            throw new DWBusinessException("自动生成单号失败!");
        }

 

posted @ 2019-10-31 14:13  四块五  阅读(395)  评论(0编辑  收藏  举报