Statistics
| Revision:

root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.catalog / org.gvsig.proj.catalog.api / src / main / java / org / gvsig / proj / catalogue / CRSCatalogException.java @ 793

History | View | Annotate | Download (3.33 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2012 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 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
 * 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.proj.catalogue;
25

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

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

    
40
    private static final long serialVersionUID = 6756475060924237176L;
41

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

    
45
    private static final String KEY = "_CRSCatalogException";
46

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

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

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

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