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.exceptions;
|
25 |
|
|
26 |
|
/**
|
27 |
|
* Excepci?n provocada por el WCS.
|
28 |
|
*
|
29 |
|
* @author Jaume Dominguez Faus - jaume.dominguez@iver.es
|
30 |
|
*/
|
31 |
|
public class WCSException extends Exception
|
32 |
|
{
|
33 |
|
private String wcs_message = null;
|
34 |
|
|
35 |
|
/**
|
36 |
|
*
|
37 |
|
*/
|
38 |
|
public WCSException() {
|
39 |
|
super();
|
40 |
|
}
|
41 |
|
|
42 |
|
/**
|
43 |
|
* Creates a new WCS Exception
|
44 |
|
*
|
45 |
|
* @param message
|
46 |
|
*/
|
47 |
|
public WCSException(String message) {
|
48 |
|
super(message);
|
49 |
|
}
|
50 |
|
|
51 |
|
/**
|
52 |
|
* Creates a new WCS Exception
|
53 |
|
*
|
54 |
|
* @param message
|
55 |
|
* @param cause
|
56 |
|
*/
|
57 |
|
public WCSException(String message, Throwable cause) {
|
58 |
|
super(message, cause);
|
59 |
|
}
|
60 |
|
|
61 |
|
/**
|
62 |
|
* Creates a new WCSException
|
63 |
|
*
|
64 |
|
* @param cause
|
65 |
|
*/
|
66 |
|
public WCSException(Throwable cause) {
|
67 |
|
super(cause);
|
68 |
|
}
|
69 |
|
|
70 |
|
public String getWCSMessage()
|
71 |
|
{
|
72 |
|
if (wcs_message == null)
|
73 |
|
return "";
|
74 |
|
else
|
75 |
|
return wcs_message;
|
76 |
|
}
|
77 |
|
|
78 |
|
public void setWCSMessage(String mes)
|
79 |
|
{
|
80 |
|
wcs_message = mes;
|
81 |
|
}
|
82 |
|
}
|
83 |
|
|
84 |
|
|