Class ChannelException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.alachisoft.ncache.runtime.exceptions.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
-
-
Constructor Summary
Constructors Constructor Description ChannelException()
ChannelException(java.lang.String reason)
ChannelException(java.lang.String reason, java.lang.Exception cause)
-
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()
-
-
-
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 classjava.lang.Throwable
- Returns:
- the cause of this exception.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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 classjava.lang.Throwable
-
-