Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / applications / appCatalog / src / org / gvsig / catalog / exceptions / DiscoveryServiceException.java @ 37871

History | View | Annotate | Download (3.03 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
package org.gvsig.catalog.exceptions;
23

    
24
import org.gvsig.tools.exception.BaseException;
25

    
26

    
27
/**
28
 * @author gvSIG Team
29
 * @version $Id$
30
 *
31
 */
32
public class DiscoveryServiceException extends BaseException {
33
    private static final long serialVersionUID = -2033440799086244875L;
34

    
35
    private static final String MESSAGE =
36
        "Error connecting to a catalog service";
37

    
38
    private static final String KEY = "_CatalogException";
39

    
40
    /**
41
     * Constructor to be used in rare cases, usually you must create a new child
42
     * exception class for each case.
43
     * <strong>Don't use this constructor in child classes.</strong>
44
     */
45
    public DiscoveryServiceException() {
46
        super(MESSAGE, KEY, serialVersionUID);
47
    }
48

    
49
    /**
50
     * Constructor to be used in rare cases, usually you must create a new child
51
     * exception class for each case.
52
     * <p>
53
     * <strong>Don't use this constructor in child classes.</strong>
54
     * </p>
55
     * 
56
     * @param cause
57
     *            the original cause of the exception
58
     */
59
    public DiscoveryServiceException(Throwable cause) {
60
        super(MESSAGE, cause, KEY, serialVersionUID);
61
    }
62

    
63
    /**
64
     * @see BaseException#BaseException(String, String, long).
65
     * @param message
66
     *            the default messageFormat to describe the exception
67
     * @param key
68
     *            the key to use to search a localized messageFormnata
69
     * @param code
70
     *            the unique code to identify the exception
71
     */
72
    protected DiscoveryServiceException(String message, String key, long code) {
73
        super(message, key, code);
74
    }
75

    
76
    /**
77
     * @see BaseException#BaseException(String, Throwable, String, long).
78
     * @param message
79
     *            the default messageFormat to describe the exception
80
     * @param cause
81
     *            the original cause of the exception
82
     * @param key
83
     *            the key to use to search a localized messageFormnata
84
     * @param code
85
     *            the unique code to identify the exception
86
     */
87
    protected DiscoveryServiceException(String message, Throwable cause,
88
        String key, long code) {
89
        super(message, cause, key, code);
90
    }
91
}