package com.monkeylessey.exception; /** * 基础受检查异常 * * @author 29443 * @version 1.0 * @date 2022/4/25 */ public class BaseCheckedException extends Exception { private String msg; private Integer code; public BaseCheckedException(String msg, Throwable cause) { super(msg, cause); } public BaseCheckedException(String msg) { super(msg); } public BaseCheckedException(String msg, Integer code) { this.msg = msg; this.code = code; } public String getMsg() { return msg; } public Integer getCode() { return code; } }