Package org.jboss.netty.channel
Class DefaultExceptionEvent
- java.lang.Object
-
- org.jboss.netty.channel.DefaultExceptionEvent
-
- All Implemented Interfaces:
ChannelEvent
,ExceptionEvent
public class DefaultExceptionEvent extends Object implements ExceptionEvent
The defaultExceptionEvent
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultExceptionEvent(Channel channel, Throwable cause)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
Returns the raised exception.Channel
getChannel()
Returns theChannel
which is associated with this event.ChannelFuture
getFuture()
Returns theChannelFuture
which is associated with this event.String
toString()
-
-
-
Method Detail
-
getChannel
public Channel getChannel()
Description copied from interface:ChannelEvent
Returns theChannel
which is associated with this event.- Specified by:
getChannel
in interfaceChannelEvent
-
getFuture
public ChannelFuture getFuture()
Description copied from interface:ChannelEvent
Returns theChannelFuture
which is associated with this event. If this event is an upstream event, this method will always return aSucceededChannelFuture
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.- Specified by:
getFuture
in interfaceChannelEvent
-
getCause
public Throwable getCause()
Description copied from interface:ExceptionEvent
Returns the raised exception.- Specified by:
getCause
in interfaceExceptionEvent
-
-