xiaoyong931011
2021-08-25 6c1a535a157864b177c17aa14afcda9ad92a2a9b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.xzx.gc.model;
 
public class MiException extends RuntimeException{
 
    private Integer code;
    public MiException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMessage());
        this.code = exceptionEnum.getCode();
    }
 
    public Integer getCode() {
        return code;
    }
 
    public void setCode(Integer code) {
        this.code = code;
    }
}