文章列表
package com.mszl.candidate.exception;
public class BusinessException extends RuntimeException{
private static final long serialVersionUID = 1L;
// 自定义错误码
private Integer code;
// 自定义构造器,只保留一个,让其必须输入错误码及内容
public BusinessException(int code, String msg) {
super(msg);
this.code = code;
...