svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / wfs / exceptions / WFSException.java @ 40559
History | View | Annotate | Download (3.5 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.remoteclient.wfs.exceptions; |
25 |
|
26 |
import java.util.Hashtable; |
27 |
import java.util.Map; |
28 |
|
29 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
30 |
*
|
31 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
32 |
*
|
33 |
* This program is free software; you can redistribute it and/or
|
34 |
* modify it under the terms of the GNU General Public License
|
35 |
* as published by the Free Software Foundation; either version 2
|
36 |
* of the License, or (at your option) any later version.
|
37 |
*
|
38 |
* This program is distributed in the hope that it will be useful,
|
39 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
40 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
41 |
* GNU General Public License for more details.
|
42 |
*
|
43 |
* You should have received a copy of the GNU General Public License
|
44 |
* along with this program; if not, write to the Free Software
|
45 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
46 |
*
|
47 |
* For more information, contact:
|
48 |
*
|
49 |
* Generalitat Valenciana
|
50 |
* Conselleria d'Infraestructures i Transport
|
51 |
* Av. Blasco Ib??ez, 50
|
52 |
* 46010 VALENCIA
|
53 |
* SPAIN
|
54 |
*
|
55 |
* +34 963862235
|
56 |
* gvsig@gva.es
|
57 |
* www.gvsig.gva.es
|
58 |
*
|
59 |
* or
|
60 |
*
|
61 |
* IVER T.I. S.A
|
62 |
* Salamanca 50
|
63 |
* 46005 Valencia
|
64 |
* Spain
|
65 |
*
|
66 |
* +34 963163400
|
67 |
* dac@iver.es
|
68 |
*/
|
69 |
/* CVS MESSAGES:
|
70 |
*
|
71 |
* $Id: WFSException.java 34026 2010-11-08 13:06:02Z jpiera $
|
72 |
* $Log$
|
73 |
* Revision 1.1 2007-02-09 14:11:01 jorpiell
|
74 |
* Primer piloto del soporte para WFS 1.1 y para WFS-T
|
75 |
*
|
76 |
*
|
77 |
*/
|
78 |
/**
|
79 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
80 |
*/
|
81 |
public class WFSException extends Exception { |
82 |
private static final long serialVersionUID = 1476084093500156070L; |
83 |
private String wfsCode = null; |
84 |
protected String formatString; |
85 |
protected String messageKey; |
86 |
protected long code; |
87 |
|
88 |
public WFSException() {
|
89 |
init(); |
90 |
} |
91 |
|
92 |
public WFSException(Throwable cause) { |
93 |
init(); |
94 |
initCause(cause); |
95 |
} |
96 |
|
97 |
public WFSException(String wfsCode,String message) { |
98 |
init(); |
99 |
formatString = message; |
100 |
this.wfsCode = wfsCode;
|
101 |
} |
102 |
|
103 |
public WFSException(String message) { |
104 |
init(); |
105 |
formatString = message; |
106 |
} |
107 |
|
108 |
protected Map values() { |
109 |
Hashtable params;
|
110 |
params = new Hashtable(); |
111 |
return params;
|
112 |
} |
113 |
|
114 |
public void init() { |
115 |
messageKey = "wfs_exception";
|
116 |
formatString = "WFS Exception";
|
117 |
code = serialVersionUID; |
118 |
} |
119 |
|
120 |
/**
|
121 |
* @return Returns the wfsCode.
|
122 |
*/
|
123 |
public String getWfsCode() { |
124 |
return wfsCode;
|
125 |
} |
126 |
} |