Vue2
Vue3
Appearance
编写类继承RuntimeException或Exception。推荐继承RuntimeException
提供两个构造方法,一个无参构造。带有String参数的构造函数并调用父类中的构造方法
public class BusinessException extends RuntimeException { public BusinessException(String message) { super(message); } }