svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / exception / DataRuntimeException.java @ 40435
History | View | Annotate | Download (770 Bytes)
1 |
package org.gvsig.fmap.dal.exception; |
---|---|
2 |
|
3 |
import java.util.HashMap; |
4 |
import java.util.Map; |
5 |
|
6 |
import org.gvsig.tools.exception.BaseRuntimeException; |
7 |
|
8 |
public abstract class DataRuntimeException extends BaseRuntimeException { |
9 |
|
10 |
/**
|
11 |
*
|
12 |
*/
|
13 |
private static final long serialVersionUID = -5882808169007262182L; |
14 |
protected Map values = new HashMap(); |
15 |
|
16 |
public DataRuntimeException(String messageFormat, Throwable cause, |
17 |
String messageKey, long code) { |
18 |
super(messageFormat, cause, messageKey, code);
|
19 |
} |
20 |
|
21 |
public DataRuntimeException(String messageFormat, String messageKey, long code) { |
22 |
super(messageFormat, messageKey, code);
|
23 |
} |
24 |
|
25 |
protected void setValue(String name, String value) { |
26 |
this.values.put(name, value);
|
27 |
} |
28 |
|
29 |
protected Map values() { |
30 |
return this.values; |
31 |
} |
32 |
} |