org.jgroups
Class ChannelException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jgroups.ChannelException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChannelClosedException, ChannelNotConnectedException, VoteException

public class ChannelException
extends java.lang.Exception

This class represents the super class for all exception types thrown by JGroups.

See Also:
Serialized Form

Constructor Summary
ChannelException()
           
ChannelException(java.lang.String reason)
           
ChannelException(java.lang.String reason, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable getCause()
          Retrieves the cause of this exception as passed to the constructor.
 void printStackTrace()
          Prints this exception's stack trace to standard error.
 void printStackTrace(java.io.PrintStream ps)
          Prints this exception's stack trace to the provided stream.
 void printStackTrace(java.io.PrintWriter pw)
          Prints this exception's stack trace to the provided writer.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelException

public ChannelException()

ChannelException

public ChannelException(java.lang.String reason)

ChannelException

public ChannelException(java.lang.String reason,
                        java.lang.Throwable cause)
Method Detail

toString

public java.lang.String toString()

getCause

public java.lang.Throwable getCause()
Retrieves the cause of this exception as passed to the constructor.

This method is provided so that in the case that a 1.3 VM is used, 1.4-like exception chaining functionality is possible. If a 1.4 VM is used, this method will override Throwable.getCause() with a version that does exactly the same thing.

Returns:
the cause of this exception.

printStackTrace

public void printStackTrace()
Prints this exception's stack trace to standard error.

This method is provided so that in the case that a 1.3 VM is used, calls to printStackTrace can be intercepted so that 1.4-like exception chaining functionality is possible.


printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints this exception's stack trace to the provided stream.

This method implements the 1.4-like exception chaining functionality when printing stack traces for 1.3 VMs. If a 1.4 VM is used, this call is delegated only to the super class.

Parameters:
ps - the stream to which the stack trace will be "printed".

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints this exception's stack trace to the provided writer.

This method implements the 1.4-like exception chaining functionality when printing stack traces for 1.3 VMs. If a 1.4 VM is used, this call is delegated only to the super class.

Parameters:
pw - the writer to which the stack trace will be "printed".


Copyright ? 2001,2002 www.jgroups.com . All Rights Reserved.