| 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;  | 
|     }  | 
| }  |