org.exolab.core.messenger
Class MessengerException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.rmi.RemoteException
                  extended byorg.exolab.core.messenger.MessengerException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AcceptorAlreadyRegisteredException, ChannelClosedException, ConnectionClosedException, InvalidChannelException, ReceiveTimeoutException

public class MessengerException
extends java.rmi.RemoteException

Signals that a Messenger exception of some sort has occurred.

Version:
$Revision: 1.2 $ $Date: 2002/02/17 20:46:53 $
Author:
Tim Anderson
See Also:
Messenger, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
MessengerException()
          Constructs a new exception with no detail message
MessengerException(java.lang.String message)
          Constructs a new exception with the specified error message.
MessengerException(java.lang.String message, java.lang.Throwable exception)
          Construct an exception with the specified reason and a link to the root cause of the exception.
MessengerException(java.lang.Throwable exception)
          Construct an exception with a link to the root cause of the exception.
 
Method Summary
 java.lang.Throwable getException()
          Return a reference to the root cause of the exception
 java.lang.String getMessage()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream stream)
           
 void printStackTrace(java.io.PrintWriter writer)
           
 
Methods inherited from class java.rmi.RemoteException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessengerException

public MessengerException()
Constructs a new exception with no detail message


MessengerException

public MessengerException(java.lang.String message)
Constructs a new exception with the specified error message.

Parameters:
message - the error message

MessengerException

public MessengerException(java.lang.Throwable exception)
Construct an exception with a link to the root cause of the exception. This is used when one exception is rethrown as another.

Parameters:
exception - the root cause of the exception

MessengerException

public MessengerException(java.lang.String message,
                          java.lang.Throwable exception)
Construct an exception with the specified reason and a link to the root cause of the exception. This is used when one exception is rethrown as another.

Parameters:
message - the error message
exception - the root cause of the exception
Method Detail

getException

public java.lang.Throwable getException()
Return a reference to the root cause of the exception

Returns:
the root cause exception, or null

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream stream)

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)

getMessage

public java.lang.String getMessage()


Copyright © 1999-2005 The Exolab Group. All Rights Reserved.