svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / exceptions / WMSException.java @ 40559
History | View | Annotate | Download (1.75 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | 40435 | jjdelcerro | *
|
4 | 40559 | jjdelcerro | * Copyright (C) 2007-2013 gvSIG Association.
|
5 | 40435 | jjdelcerro | *
|
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 | 40559 | jjdelcerro | * as published by the Free Software Foundation; either version 3
|
9 | 40435 | jjdelcerro | * 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 | 40559 | jjdelcerro | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 | * MA 02110-1301, USA.
|
||
20 | 40435 | jjdelcerro | *
|
21 | 40559 | jjdelcerro | * For any additional information, do not hesitate to contact us
|
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | 40435 | jjdelcerro | */
|
24 | package org.gvsig.remoteclient.exceptions; |
||
25 | |||
26 | /**
|
||
27 | * Excepci?n provocada por el WMS.
|
||
28 | *
|
||
29 | * @author Vicente Caballero Navarro
|
||
30 | */
|
||
31 | public class WMSException extends Exception |
||
32 | { |
||
33 | private String wms_message = null; |
||
34 | |||
35 | /**
|
||
36 | *
|
||
37 | */
|
||
38 | public WMSException() {
|
||
39 | super();
|
||
40 | } |
||
41 | |||
42 | /**
|
||
43 | * Crea WMSException.
|
||
44 | *
|
||
45 | * @param message
|
||
46 | */
|
||
47 | public WMSException(String message) { |
||
48 | super(message);
|
||
49 | } |
||
50 | |||
51 | /**
|
||
52 | * Crea WMSException.
|
||
53 | *
|
||
54 | * @param message
|
||
55 | * @param cause
|
||
56 | */
|
||
57 | public WMSException(String message, Throwable cause) { |
||
58 | super(message, cause);
|
||
59 | } |
||
60 | |||
61 | /**
|
||
62 | * Crea WMSException.
|
||
63 | *
|
||
64 | * @param cause
|
||
65 | */
|
||
66 | public WMSException(Throwable cause) { |
||
67 | super(cause);
|
||
68 | } |
||
69 | |||
70 | public String getWMSMessage() |
||
71 | { |
||
72 | if (wms_message == null) |
||
73 | return ""; |
||
74 | else
|
||
75 | return wms_message;
|
||
76 | } |
||
77 | |||
78 | public void setWMSMessage(String mes) |
||
79 | { |
||
80 | wms_message = mes; |
||
81 | } |
||
82 | } |