public class DefaultExceptionEvent extends java.lang.Object implements ExceptionEvent
ExceptionEvent implementation.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Throwable |
cause |
private Channel |
channel |
| Constructor and Description |
|---|
DefaultExceptionEvent(Channel channel,
java.lang.Throwable cause)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Returns the raised exception.
|
Channel |
getChannel()
Returns the
Channel which is associated with this event. |
ChannelFuture |
getFuture()
Returns the
ChannelFuture which is associated with this event. |
java.lang.String |
toString() |
private final Channel channel
private final java.lang.Throwable cause
public DefaultExceptionEvent(Channel channel, java.lang.Throwable cause)
public Channel getChannel()
ChannelEventChannel which is associated with this event.getChannel in interface ChannelEventpublic ChannelFuture getFuture()
ChannelEventChannelFuture which is associated with this event.
If this event is an upstream event, this method will always return a
SucceededChannelFuture because the event has occurred already.
If this event is a downstream event (i.e. I/O request), the returned
future will be notified when the I/O request succeeds or fails.getFuture in interface ChannelEventpublic java.lang.Throwable getCause()
ExceptionEventgetCause in interface ExceptionEventpublic java.lang.String toString()
toString in class java.lang.Object