View Javadoc

1   /*
2    * $HeadURL: /cvsroot/insight/Insight/remote-protocol/src/com/mindtree/insight/remoteprotocol/PacketDataSizeOverLimitsException.java,v $
3    * $Date: 2005/08/09 18:39:17 $
4    * $Revision: 1.1 $
5    * $Author: m1001025 $
6    * 
7    * Copyright (c) 2005 MindTree Consulting Ltd. 
8    * 
9    * This file is part of Insight Remote Protocol Library.
10   * 
11   * Insight Remote Protocol Library is free software: you can redistribute it 
12   * and/or modify it under the terms of the GNU General Public License as 
13   * published by the Free Software Foundation, either version 3 of the License, 
14   * or (at your option) any later version.
15   * 
16   * Insight Remote Protocol Library is distributed in the hope that it will be 
17   * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
19   * Public License for more details.
20   * 
21   * You should have received a copy of the GNU General Public License along with 
22   * Insight Remote Protocol Library.  If not, see <http://www.gnu.org/licenses/>.
23   */
24  package com.mindtree.techworks.insight.remoteprotocol;
25  
26  
27  /**
28   * All exceptions thrown by the RemoteProtocol classes will be wrapped in this 
29   * exception.
30   * 
31   * @see java.lang.Exception
32   * @author <a href="mailto:bindul_bhowmik@mindtree.com">Bindul Bhowmik</a>
33   * @version $Revision: $ $Date: $
34   */
35  public class RemoteProtocolException extends Exception {
36  
37  	/**
38  	 * The serial version uid for the class
39  	 */
40  	private static final long serialVersionUID = -1689937266222441019L;
41  
42  	/**
43  	 * Creates an instance of the exception
44  	 * 
45  	 * @param message
46  	 *            Message describing the cause of the exception
47  	 * @param cause
48  	 *            The root exception that caused this exception
49  	 */
50  	public RemoteProtocolException (String message, Throwable cause) {
51  
52  		super (message, cause);
53  
54  	}
55  
56  	/**
57  	 * Creates an instance of the exception
58  	 * 
59  	 * @param message
60  	 *            Message describing the cause of the exception
61  	 */
62  	public RemoteProtocolException (String message) {
63  
64  		super (message);
65  	}
66  
67  }