public class DefaultExceptionEvent extends java.lang.Object implements ExceptionEvent
ExceptionEvent implementation.| 构造器和说明 |
|---|
DefaultExceptionEvent(Channel channel,
java.lang.Throwable cause)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
public DefaultExceptionEvent(Channel channel, java.lang.Throwable cause)
public Channel getChannel()
ChannelEventChannel which is associated with this event.getChannel 在接口中 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 在接口中 ChannelEventpublic java.lang.Throwable getCause()
ExceptionEventgetCause 在接口中 ExceptionEventpublic java.lang.String toString()
toString 在类中 java.lang.Object