svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.file / org.gvsig.fmap.dal.file.dbf / src / main / java / org / gvsig / fmap / dal / store / dbf / DuplicatedFieldNameException.java @ 47436
History | View | Annotate | Download (823 Bytes)
1 |
package org.gvsig.fmap.dal.store.dbf; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.exception.ReadException; |
4 |
|
5 |
/**
|
6 |
*
|
7 |
* @author jjdelcerro
|
8 |
*/
|
9 |
public class DuplicatedFieldNameException extends ReadException { |
10 |
|
11 |
/**
|
12 |
*
|
13 |
*/
|
14 |
private static final long serialVersionUID = -1671651605329756160L; |
15 |
private static final String MESSAGE_FORMAT = "Duplicated field name '%(fieldName)'.\nCheck 'Allow duplicated field names' in layer properties in add layer dialog. The layer will become read only."; |
16 |
private static final String MESSAGE_KEY = "_DuplicatedFieldNameException"; |
17 |
|
18 |
@SuppressWarnings(value = "OverridableMethodCallInConstructor") |
19 |
public DuplicatedFieldNameException(String fieldName) { |
20 |
super(MESSAGE_FORMAT, null, MESSAGE_KEY, serialVersionUID); |
21 |
setValue("fieldName", fieldName);
|
22 |
} |
23 |
|
24 |
} |