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 / CreateException.java @ 40435
History | View | Annotate | Download (644 Bytes)
1 |
package org.gvsig.fmap.dal.exception; |
---|---|
2 |
|
3 |
public class CreateException extends DataException { |
4 |
|
5 |
/**
|
6 |
*
|
7 |
*/
|
8 |
private static final long serialVersionUID = 9186224366705822305L; |
9 |
private final static String MESSAGE_FORMAT = "Exception creating '%(resource)'."; |
10 |
private final static String MESSAGE_KEY = "_CreateException"; |
11 |
|
12 |
public CreateException(String resource, Throwable cause) { |
13 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
|
14 |
setValue("resource", resource);
|
15 |
} |
16 |
|
17 |
protected CreateException(String messageFormat, String messageKey, |
18 |
long serialversionuid2) {
|
19 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
|
20 |
} |
21 |
|
22 |
|
23 |
} |