mev-4.0.01/source/org/tigr/remote/RemoteException.java

Code
Comments
Other
Rev Date Author Line
2 26 Feb 07 jari 1 /*
2 26 Feb 07 jari 2 Copyright @ 1999-2003, The Institute for Genomic Research (TIGR).
2 26 Feb 07 jari 3 All rights reserved.
2 26 Feb 07 jari 4 */
2 26 Feb 07 jari 5 /*
2 26 Feb 07 jari 6  * $RCSfile: RemoteException.java,v $
2 26 Feb 07 jari 7  * $Revision: 1.3 $
2 26 Feb 07 jari 8  * $Date: 2005/03/10 15:36:35 $
2 26 Feb 07 jari 9  * $Author: braistedj $
2 26 Feb 07 jari 10  * $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 17      * Constructs a <code>RemoteException</code> with specified message.
2 26 Feb 07 jari 18      *
2 26 Feb 07 jari 19      * @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 26      * Constructs a <code>RemoteException</code> with specified message
2 26 Feb 07 jari 27      * and exception.
2 26 Feb 07 jari 28      *
2 26 Feb 07 jari 29      * @param message the detail message.
2 26 Feb 07 jari 30      * @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 38      * Prints this <code>RemoteException</code> and its backtrace to the
2 26 Feb 07 jari 39      * specified print stream.
2 26 Feb 07 jari 40      *
2 26 Feb 07 jari 41      * @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 51      * 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 }