gvsig-3d / 2.1 / trunk / org.gvsig.gvsig3d / org.gvsig.gvsig3d.lib / org.gvsig.gvsig3d.lib.api / src / main / java / org / gvsig / gvsig3d / Gvsig3DException.java @ 385
History | View | Annotate | Download (3.5 KB)
1 |
/* gvSIG 3D extension for gvSIG
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2012 Prodevelop.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Prodevelop, S.L.
|
22 |
* Pza. Don Juan de Villarrasa, 14 - 5
|
23 |
* 46001 Valencia
|
24 |
* Spain
|
25 |
*
|
26 |
* +34 963 510 612
|
27 |
* +34 963 510 968
|
28 |
* prode@prodevelop.es
|
29 |
* http://www.prodevelop.es
|
30 |
*/
|
31 |
/*
|
32 |
* AUTHORS:
|
33 |
* 2012 AI2 - Instituto Universitario de Automatica e Informatica Industrial.
|
34 |
* Universitat Politecnica de Valencia (UPV)
|
35 |
* http://www.ai2.upv.es
|
36 |
*/
|
37 |
|
38 |
|
39 |
package org.gvsig.gvsig3d; |
40 |
|
41 |
import org.gvsig.tools.exception.BaseException; |
42 |
|
43 |
/**
|
44 |
* Generic exception thrown in the Gvsig3D API when the exception or error
|
45 |
* may be dealt by the program or the user of the program which is a client of
|
46 |
* the Gvsig3D API.
|
47 |
*
|
48 |
* @see {@link Gvsig3DService}
|
49 |
* @see {@link Gvsig3DManager}
|
50 |
* @author gvSIG team & AI2
|
51 |
* @version $Id$
|
52 |
*/
|
53 |
public class Gvsig3DException extends BaseException { |
54 |
|
55 |
private static final long serialVersionUID = 6756475060924237176L; |
56 |
|
57 |
private static final String MESSAGE = |
58 |
"An error has been produced in the Gvsig3D library";
|
59 |
|
60 |
private static final String KEY = "_Gvsig3DException"; |
61 |
|
62 |
/**
|
63 |
* Constructor to be used in rare cases, usually you must create a new child
|
64 |
* exception class for each case.
|
65 |
* <strong>Don't use this constructor in child classes.</strong>
|
66 |
*/
|
67 |
public Gvsig3DException() {
|
68 |
super(MESSAGE, KEY, serialVersionUID);
|
69 |
} |
70 |
|
71 |
/**
|
72 |
* Constructor to be used in rare cases, usually you must create a new child
|
73 |
* exception class for each case.
|
74 |
* <p>
|
75 |
* <strong>Don't use this constructor in child classes.</strong>
|
76 |
* </p>
|
77 |
*
|
78 |
* @param cause
|
79 |
* the original cause of the exception
|
80 |
*/
|
81 |
public Gvsig3DException(Exception cause) { |
82 |
super(MESSAGE, cause, KEY, serialVersionUID);
|
83 |
} |
84 |
|
85 |
/**
|
86 |
* @see BaseException#BaseException(String, String, long).
|
87 |
* @param message
|
88 |
* the default messageFormat to describe the exception
|
89 |
* @param key
|
90 |
* the key to use to search a localized messageFormnata
|
91 |
* @param code
|
92 |
* the unique code to identify the exception
|
93 |
*/
|
94 |
protected Gvsig3DException(String message, String key, long code) { |
95 |
super(message, key, code);
|
96 |
} |
97 |
|
98 |
/**
|
99 |
* @see BaseException#BaseException(String, Throwable, String, long).
|
100 |
* @param message
|
101 |
* the default messageFormat to describe the exception
|
102 |
* @param cause
|
103 |
* the original cause of the exception
|
104 |
* @param key
|
105 |
* the key to use to search a localized messageFormnata
|
106 |
* @param code
|
107 |
* the unique code to identify the exception
|
108 |
*/
|
109 |
protected Gvsig3DException(String message, Throwable cause, |
110 |
String key, long code) { |
111 |
super(message, cause, key, code);
|
112 |
} |
113 |
} |