Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.newlayer / org.gvsig.newlayer.lib / org.gvsig.newlayer.lib.api / src / main / java / org / gvsig / newlayer / NewLayerException.java @ 40560

History | View | Annotate | Download (3.29 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.newlayer;
25

    
26
import org.gvsig.tools.exception.BaseException;
27

    
28
/**
29
 * Generic exception thrown in the NewLayer API when the exception or error
30
 * may be dealt by the program or the user of the program which is a client of
31
 * the NewLayer API.
32
 * 
33
 * @see {@link NewLayerService}
34
 * @see {@link NewLayerManager}
35
 * @author gvSIG team.
36
 * @version $Id$
37
 */
38
public class NewLayerException extends BaseException {
39

    
40
    /**
41
         * 
42
         */
43
        private static final long serialVersionUID = -2954242107118688337L;
44

    
45
        private static final String MESSAGE =
46
        "An error has been produced in the NewLayer library";
47

    
48
    private static final String KEY = "_NewLayerException";
49

    
50
    /**
51
     * Constructor to be used in rare cases, usually you must create a new child
52
     * exception class for each case.
53
     * <strong>Don't use this constructor in child classes.</strong>
54
     */
55
    public NewLayerException() {
56
        super(MESSAGE, KEY, serialVersionUID);
57
    }
58

    
59
    /**
60
     * Constructor to be used in rare cases, usually you must create a new child
61
     * exception class for each case.
62
     * <p>
63
     * <strong>Don't use this constructor in child classes.</strong>
64
     * </p>
65
     * 
66
     * @param cause
67
     *            the original cause of the exception
68
     */
69
    public NewLayerException(Exception cause) {
70
        super(MESSAGE, cause, KEY, serialVersionUID);
71
    }
72

    
73
    /**
74
     * @see BaseException#BaseException(String, String, long).
75
     * @param message
76
     *            the default messageFormat to describe the exception
77
     * @param key
78
     *            the key to use to search a localized messageFormnata
79
     * @param code
80
     *            the unique code to identify the exception
81
     */
82
    protected NewLayerException(String message, String key, long code) {
83
        super(message, key, code);
84
    }
85

    
86
    /**
87
     * @see BaseException#BaseException(String, Throwable, String, long).
88
     * @param message
89
     *            the default messageFormat to describe the exception
90
     * @param cause
91
     *            the original cause of the exception
92
     * @param key
93
     *            the key to use to search a localized messageFormnata
94
     * @param code
95
     *            the unique code to identify the exception
96
     */
97
    protected NewLayerException(String message, Throwable cause,
98
        String key, long code) {
99
        super(message, cause, key, code);
100
    }
101
}