org.exolab.core.messenger
Class MessengerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by org.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:
reason - the reason for the exception
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()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Overrides:
printStackTrace in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.rmi.RemoteException


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