Statistics
| Revision:

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

History | View | Annotate | Download (3.27 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.personaldb;
25

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

    
28
/**
29
 * Generic exception thrown in the PersonalDB 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 PersonalDB API.
32
 * 
33
 * @see {@link PersonalDBManager}
34
 * @author gvSIG team.
35
 * @version $Id$
36
 */
37
public class PersonalDBException extends BaseException {
38

    
39
    private static final long serialVersionUID = 6756475060924237176L;
40

    
41
    private static final String MESSAGE =
42
        "An error has been produced in the PersonalDB library";
43

    
44
    private static final String KEY = "_PersonalDBException";
45

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

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

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

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