2 |
26 Feb 07 |
jari |
1 |
/* |
2 |
26 Feb 07 |
jari |
Copyright @ 1999-2003, The Institute for Genomic Research (TIGR). |
2 |
26 Feb 07 |
jari |
All rights reserved. |
2 |
26 Feb 07 |
jari |
4 |
*/ |
2 |
26 Feb 07 |
jari |
5 |
/* |
2 |
26 Feb 07 |
jari |
* $RCSfile: RemoteException.java,v $ |
2 |
26 Feb 07 |
jari |
* $Revision: 1.3 $ |
2 |
26 Feb 07 |
jari |
* $Date: 2005/03/10 15:36:35 $ |
2 |
26 Feb 07 |
jari |
* $Author: braistedj $ |
2 |
26 Feb 07 |
jari |
* $State: Exp $ |
2 |
26 Feb 07 |
jari |
11 |
*/ |
2 |
26 Feb 07 |
jari |
12 |
package org.tigr.remote; |
2 |
26 Feb 07 |
jari |
13 |
|
2 |
26 Feb 07 |
jari |
14 |
public class RemoteException extends Exception { |
2 |
26 Feb 07 |
jari |
15 |
|
2 |
26 Feb 07 |
jari |
16 |
/** |
2 |
26 Feb 07 |
jari |
* Constructs a <code>RemoteException</code> with specified message. |
2 |
26 Feb 07 |
jari |
18 |
* |
2 |
26 Feb 07 |
jari |
* @param message the detail message. |
2 |
26 Feb 07 |
jari |
20 |
*/ |
2 |
26 Feb 07 |
jari |
21 |
public RemoteException(String message) { |
2 |
26 Feb 07 |
jari |
22 |
super( message ); |
2 |
26 Feb 07 |
jari |
23 |
} |
2 |
26 Feb 07 |
jari |
24 |
|
2 |
26 Feb 07 |
jari |
25 |
/** |
2 |
26 Feb 07 |
jari |
* Constructs a <code>RemoteException</code> with specified message |
2 |
26 Feb 07 |
jari |
* and exception. |
2 |
26 Feb 07 |
jari |
28 |
* |
2 |
26 Feb 07 |
jari |
* @param message the detail message. |
2 |
26 Feb 07 |
jari |
* @param exception the exception to be wrapped. |
2 |
26 Feb 07 |
jari |
31 |
*/ |
2 |
26 Feb 07 |
jari |
32 |
public RemoteException( String message, Exception exception ) { |
2 |
26 Feb 07 |
jari |
33 |
super( message ); |
2 |
26 Feb 07 |
jari |
34 |
this.exception = exception; |
2 |
26 Feb 07 |
jari |
35 |
} |
2 |
26 Feb 07 |
jari |
36 |
|
2 |
26 Feb 07 |
jari |
37 |
/** |
2 |
26 Feb 07 |
jari |
* Prints this <code>RemoteException</code> and its backtrace to the |
2 |
26 Feb 07 |
jari |
* specified print stream. |
2 |
26 Feb 07 |
jari |
40 |
* |
2 |
26 Feb 07 |
jari |
* @param s <code>PrintStream</code> to use for output. |
2 |
26 Feb 07 |
jari |
42 |
*/ |
2 |
26 Feb 07 |
jari |
43 |
public void printStackTrace(java.io.PrintStream s) { |
2 |
26 Feb 07 |
jari |
44 |
super.printStackTrace(s); |
2 |
26 Feb 07 |
jari |
45 |
if (exception != null) { |
2 |
26 Feb 07 |
jari |
46 |
exception.printStackTrace(s); |
2 |
26 Feb 07 |
jari |
47 |
} |
2 |
26 Feb 07 |
jari |
48 |
} |
2 |
26 Feb 07 |
jari |
49 |
|
2 |
26 Feb 07 |
jari |
50 |
/** |
2 |
26 Feb 07 |
jari |
* Field exception specifies a wrapped exception. |
2 |
26 Feb 07 |
jari |
52 |
*/ |
2 |
26 Feb 07 |
jari |
53 |
private Exception exception = null; |
2 |
26 Feb 07 |
jari |
54 |
} |