一般用这种,这种异常不会记录到日志,相当于FriendlyException throw new ServiceException("请输入正确的确认密码!"); throw new ServiceException("请先删除子节点!");
FriendlyException
throw new ServiceException("请输入正确的确认密码!");
throw new ServiceException("请先删除子节点!");
throw new ApiException("当前字典键值已存在!");
throw new RuntimeException("请上传正确的excel文件!");
业务异常