root / branches / Mobile_Compatible_Hito_1 / libFMap / src-data / org / gvsig / data / exception / DataException.java @ 21606
History | View | Annotate | Download (678 Bytes)
1 |
package org.gvsig.data.exception; |
---|---|
2 |
|
3 |
import java.util.Hashtable; |
4 |
import java.util.Map; |
5 |
|
6 |
import org.gvsig.exceptions.BaseException; |
7 |
|
8 |
public class DataException extends BaseException { |
9 |
|
10 |
private String description; |
11 |
|
12 |
public DataException(String description){ |
13 |
this.description = description;
|
14 |
this.init();
|
15 |
|
16 |
} |
17 |
|
18 |
public DataException(String description,Throwable cause){ |
19 |
this.description = description;
|
20 |
this.init();
|
21 |
this.initCause(cause);
|
22 |
} |
23 |
|
24 |
protected void init() { |
25 |
messageKey = "libData_exception";
|
26 |
formatString = "%(description)";
|
27 |
} |
28 |
|
29 |
protected Map values() { |
30 |
Hashtable params = new Hashtable(); |
31 |
params.put("description",this.description); |
32 |
return params;
|
33 |
} |
34 |
} |