Statistics
| Revision:

gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.api / src / main / java / org / gvsig / fmap / dal / coverage / exception / ImportMapContextException.java @ 2443

History | View | Annotate | Download (2.04 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
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
package org.gvsig.fmap.dal.coverage.exception;
24
/**
25
 * Exception representing an error in the process of importing a Web Map Context
26
 * file into gvSIG.<br><br>
27
 *
28
 * The error can be critical or not defining if the process can be finished with the
29
 * intervention of the user of otherwise it is impossible.<br><br>
30
 *
31
 * You should check the <b>isCritical()</b> method in order to know if you can continue
32
 * importing data or not. If the answer of this method is <b>true</b>, aborting the
33
 * process is strongly encouraged; or execute further instructions at your own risk.
34
 *
35
 * @author jaume dominguez faus - jaume.dominguez@iver.es
36
 *
37
 */
38
public class ImportMapContextException extends Exception {
39
        private static final long serialVersionUID = 1L;
40
        private boolean critical;
41

    
42
        public ImportMapContextException(String message, boolean critical) {
43
                super(message);
44
                this.critical = critical;
45
        }
46

    
47
        /**
48
         * If <b>true</b> then the elements could be created but with inconsistent values that
49
         * the user can fix modifying its properties. <br><br>
50
         *
51
         * If <b>false</b> then it is not possible to create the elements.
52
         * @return
53
         */
54
        public boolean isCritical() {
55
                return critical;
56
        }
57
}