OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2022-01-10 3955206191fdeb3a0609bd2170ed97f3f283d860
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package kr.wisestone.owl.exception;
 
import kr.wisestone.owl.vo.MessageVo;
 
 
public class OwlRuntimeException extends RuntimeException {
    private static final long serialVersionUID = 1L;
 
    protected String code;
 
    public OwlRuntimeException() {
        super();
    }
 
    public OwlRuntimeException(String code, final String message,
                               final Throwable cause) {
        super(message, cause);
        this.code = code;
    }
 
    public OwlRuntimeException(String code, final String message) {
        super(message);
        this.code = code;
    }
 
    public OwlRuntimeException(MessageVo message) {
        super(message.getMessage());
        this.code = message.getCode();
    }
 
    public OwlRuntimeException(MessageVo message, Throwable t) {
        super(message.getMessage(), t);
        this.code = message.getCode();
    }
 
    public OwlRuntimeException(Exception e) {
        super(e);
    }
 
    public OwlRuntimeException(String code) {
        this.code = code;
    }
 
    public OwlRuntimeException(String code, Exception e) {
        super(e);
        this.code = code;
    }
 
    public String getCode() {
        return this.code;
    }
}