root / branches / dal_time_support / libraries / libFMap_mapcontext / src / org / gvsig / fmap / mapcontext / rendering / symbols / impl / SymbolFileAlreadyExistsException.java @ 37204
History | View | Annotate | Download (1.69 KB)
1 | 30838 | cordinyana | /* gvSIG. Geographic Information System of the Valencian Government
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2007-2008 Infrastructures and Transports Department
|
||
4 | 31544 | cordinyana | * of the Valencian Government (CIT)
|
5 | 30838 | cordinyana | *
|
6 | * This program is free software; you can redistribute it and/or
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | * as published by the Free Software Foundation; either version 2
|
||
9 | * of the License, or (at your option) any later version.
|
||
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
19 | * MA 02110-1301, USA.
|
||
20 | *
|
||
21 | */
|
||
22 | |||
23 | /*
|
||
24 | * AUTHORS (In addition to CIT):
|
||
25 | * 2009 {DiSiD Technologies} {{Task}}
|
||
26 | */
|
||
27 | package org.gvsig.fmap.mapcontext.rendering.symbols.impl; |
||
28 | |||
29 | import java.io.File; |
||
30 | |||
31 | import org.gvsig.fmap.mapcontext.rendering.symbols.SymbolException; |
||
32 | |||
33 | /**
|
||
34 | * Exception thrown when a symbol file is going to be created and the file
|
||
35 | * already exists.
|
||
36 | * @author gvSIG team
|
||
37 | */
|
||
38 | public class SymbolFileAlreadyExistsException extends SymbolException { |
||
39 | |||
40 | private static final long serialVersionUID = 2327496845968384363L; |
||
41 | |||
42 | private static final String KEY = "SymbolFileAlreadyExistsException"; |
||
43 | |||
44 | private static final String MESSAGE = "A symbol was going to be stored on " + |
||
45 | "the file %(file), which already exists";
|
||
46 | |||
47 | public SymbolFileAlreadyExistsException(File symbolFile) { |
||
48 | super(MESSAGE, KEY, serialVersionUID);
|
||
49 | setValue("file", symbolFile);
|
||
50 | } |
||
51 | } |