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 @ 44369
History | View | Annotate | Download (1.23 KB)
1 | 44098 | jjdelcerro | 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 | 44139 | jjdelcerro | public ExpressionRuntimeException(String message, String tip) { |
29 | super(message);
|
||
30 | this.code = null; |
||
31 | this.tip = tip;
|
||
32 | } |
||
33 | |||
34 | 44098 | jjdelcerro | public ExpressionRuntimeException(String message) { |
35 | super(message);
|
||
36 | this.code = null; |
||
37 | } |
||
38 | |||
39 | public ExpressionRuntimeException(Code code, String message, Throwable cause) { |
||
40 | super(message,cause);
|
||
41 | this.code = code;
|
||
42 | } |
||
43 | |||
44 | public ExpressionRuntimeException(String message, Throwable cause) { |
||
45 | super(message,cause);
|
||
46 | this.code = null; |
||
47 | } |
||
48 | |||
49 | public Code getCode() {
|
||
50 | return this.code; |
||
51 | } |
||
52 | |||
53 | public String getTip() { |
||
54 | return this.tip; |
||
55 | } |
||
56 | } |