Class ChannelException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ChannelClosedException, ChannelNotConnectedException

    public class ChannelException
    extends java.lang.Exception
    implements java.io.Serializable
    This class represents the super class for all exception types thrown by JGroups.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getCause()
      Retrieves the cause of this exception as passed to the constructor.
      void printStackTrace()
      Prints this exception's stack trace to standard error.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, 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.Exception cause)
    • Method Detail

      • getCause

        public java.lang.Exception 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.

        Overrides:
        getCause in class java.lang.Throwable
        Returns:
        the cause of this exception.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • printStackTrace

        public final 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.

        Overrides:
        printStackTrace in class java.lang.Throwable