Revision 42565

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.remoteclient/src/main/java/org/gvsig/remoteclient/exceptions/WCSException.java
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

  
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.remoteclient/src/test/java/org/gvsig/remoteclient/AllTests.java
26 26
import junit.framework.Test;
27 27
import junit.framework.TestSuite;
28 28

  
29
import org.gvsig.remoteclient.wcs.wcs_1_0_0.WCSProtocolHandler_1_0_0Test;
30

  
31 29
public class AllTests {
32 30

  
33 31
	public static Test suite() {
34 32
		TestSuite suite = new TestSuite("Test for org.gvsig.remoteClient");
35 33
		//$JUnit-BEGIN$
36 34
		suite.addTestSuite(Test.class);
37
		
35

  
38 36
		//commented until there is a way to simulate the needed servers.
39 37
		//suite.addTestSuite(URLRetrieveTest.class);
40
		suite.addTestSuite(WCSProtocolHandler_1_0_0Test.class);
41
		
38
//		suite.addTestSuite(WCSProtocolHandler_1_0_0Test.class);
39

  
42 40
		//$JUnit-END$
43 41
		return suite;
44 42
	}

Also available in: Unified diff