View Javadoc

1   /*
2    * EL4J, the Extension Library for the J2EE, adds incremental enhancements to
3    * the spring framework, http://el4j.sf.net
4    * Copyright (C) 2005 by ELCA Informatique SA, Av. de la Harpe 22-24,
5    * 1000 Lausanne, Switzerland, http://www.elca.ch
6    *
7    * EL4J is published under the GNU Lesser General Public License (LGPL)
8    * Version 2.1. See http://www.gnu.org/licenses/
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 Lesser General Public License for more details.
14   *
15   * For alternative licensing, please contact info@elca.ch
16   */
17  
18  package ch.elca.el4j.tests.remoting.service.soap;
19  
20  import java.rmi.RemoteException;
21  import java.util.Calendar;
22  
23  import ch.elca.el4j.tests.remoting.service.CalculatorValueObject;
24  
25  /**
26   * Jax-Rpc 1.1 wsdl fault specification conform exception.
27   *
28   * @svnLink $Revision: 3883 $;$Date: 2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) $;$Author: swismer $;$URL: https://el4j.svn.sourceforge.net/svnroot/el4j/branches/el4j_3_1/el4j/framework/tests/remoting/web/jar/src/main/java/ch/elca/el4j/tests/remoting/service/soap/RemoteExceptionWithData.java $
29   *
30   * @author Martin Zeltner (MZE)
31   */
32  public class RemoteExceptionWithData extends RemoteException {
33  	/**
34  	 * Is an index of this exception.
35  	 */
36  	private int m_index;
37  
38  	/**
39  	 * Is the message of this exception.
40  	 */
41  	private String m_message;
42  
43  	/**
44  	 * Is the data of this exception.
45  	 */
46  	private byte[] m_data;
47  
48  	/**
49  	 * Is the calendar of this exception.
50  	 */
51  	private Calendar m_calendar;
52  	
53  	/**
54  	 * Are the calculator value objects.
55  	 */
56  	private CalculatorValueObject[] m_calculatorValueObjects;
57  
58  	/**
59  	 * @return Returns the index.
60  	 */
61  	public int getIndex() {
62  		return m_index;
63  	}
64  
65  	/**
66  	 * @param index The index to set.
67  	 */
68  	public void setIndex(int index) {
69  		m_index = index;
70  	}
71  
72  	/**
73  	 * @return Returns the message.
74  	 */
75  	public String getMessage() {
76  		return m_message;
77  	}
78  
79  	/**
80  	 * @param message The message to set.
81  	 */
82  	public void setMessage(String message) {
83  		m_message = message;
84  	}
85  
86  	/**
87  	 * @return Returns the calendar.
88  	 */
89  	public Calendar getCalendar() {
90  		return m_calendar;
91  	}
92  
93  	/**
94  	 * @param calendar
95  	 *            The calendar to set.
96  	 */
97  	public void setCalendar(Calendar calendar) {
98  		m_calendar = calendar;
99  	}
100 
101 	/**
102 	 * @return Returns the data.
103 	 */
104 	public byte[] getData() {
105 		return m_data;
106 	}
107 
108 	/**
109 	 * @param data
110 	 *            The data to set.
111 	 */
112 	public void setData(byte[] data) {
113 		m_data = data;
114 	}
115 
116 	/**
117 	 * @return Returns the calculatorValueObjects.
118 	 */
119 	public CalculatorValueObject[] getCalculatorValueObjects() {
120 		return m_calculatorValueObjects;
121 	}
122 
123 	/**
124 	 * @param calculatorValueObjects The calculatorValueObjects to set.
125 	 */
126 	public void setCalculatorValueObjects(
127 		CalculatorValueObject[] calculatorValueObjects) {
128 		m_calculatorValueObjects = calculatorValueObjects;
129 	}
130 }