通用代码封装
java
C18298182575
跳出舒适区
展开
-
this关键字在构建错误实例时使用说明
/** * 异常实体 * * @author shenke * @date 2019-05-29 14:17 */@Datapublic class ExceptionBean { private String code; private String subCode; private String message; private String s...原创 2019-09-26 10:51:44 · 138 阅读 · 0 评论 -
业务异常通用类及全局异常处理
一,异常抛出方式方式1if (eneity == null) { throw new WmsException(CommonCode.UPDATE_MONGO_ERROR);}方式2if (subjectEntity == null || subjectEntity.getDictEntities() == null || CollectionUtils.isEmpt...原创 2019-09-26 11:38:25 · 1667 阅读 · 0 评论