Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.api / src / main / java / org / gvsig / expressionevaluator / ExpressionRuntimeException.java @ 44098

History | View | Annotate | Download (1.09 KB)

1
package org.gvsig.expressionevaluator;
2

    
3
/**
4
 *
5
 * @author jjdelcerro
6
 */
7
public class ExpressionRuntimeException extends RuntimeException {
8

    
9
    private final Code code;
10
    private String tip;
11
    
12
    public ExpressionRuntimeException(Code code) {
13
        super();
14
        this.code = code;
15
    }
16

    
17
    public ExpressionRuntimeException(Code code, String message) {
18
        super(message);
19
        this.code = code;
20
    }
21

    
22
    public ExpressionRuntimeException(Code code, String message, String tip) {
23
        super(message);
24
        this.code = code;
25
        this.tip = tip;
26
    }
27

    
28
    public ExpressionRuntimeException(String message) {
29
        super(message);
30
        this.code = null;
31
    }
32

    
33
    public ExpressionRuntimeException(Code code, String message, Throwable cause) {
34
        super(message,cause);
35
        this.code = code;
36
    }
37
    
38
    public ExpressionRuntimeException(String message, Throwable cause) {
39
        super(message,cause);
40
        this.code = null;
41
    }
42
    
43
    public Code getCode() {
44
        return this.code;
45
    }
46
    
47
    public String getTip() {
48
        return this.tip;
49
    }
50
}