bladex throw new ServiceException抛出异常的时候,不要打印出错误信息,只要中文

Blade 未结 1 102
liangzhongkj
liangzhongkj 2025-11-14 09:54

0b16cb06aeea168000f12755878e6f86.jpg

throw new ServiceException(VehicleConstant.VEHICLE_HAS_ON_GOING_TRANSPORT);
public static final String VEHICLE_HAS_ON_GOING_TRANSPORT = "车辆存在进行中的订单";


去掉前面的org.springblade这些英文,只提示中文就好了

1条回答
  •  admin
    admin (楼主)
    2025-11-14 14:55

    这里打断点看下报错的时候是输出的什么,原版返回的是 getMessage,也就是只有详细错误信息才对

    CleanShot20251114145451@2x.png

    0 讨论(0)
提交回复