“djh”
3 天以前 d7471cff04678b91271bdc566bcbddf2f4ab04b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.gkhy.exam.common.exception;
 
import com.gkhy.exam.common.api.IErrorCode;
 
public class UtilException extends RuntimeException{
    private IErrorCode errorCode;
 
    public UtilException(IErrorCode errorCode){
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }
 
    public UtilException(String message){
        super(message);
    }
 
    public UtilException(Throwable cause){
        super(cause);
    }
 
    public UtilException(String message, Throwable cause) {
        super(message, cause);
    }
 
    public IErrorCode getErrorCode() {
        return errorCode;
    }
 
}