Package org.jboss.netty.channel
Class DefaultExceptionEvent
- java.lang.Object
-
- org.jboss.netty.channel.DefaultExceptionEvent
-
- All Implemented Interfaces:
ChannelEvent,ExceptionEvent
public class DefaultExceptionEvent extends java.lang.Object implements ExceptionEvent
The defaultExceptionEventimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultExceptionEvent(Channel channel, java.lang.Throwable cause)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Returns the raised exception.ChannelgetChannel()Returns theChannelwhich is associated with this event.ChannelFuturegetFuture()Returns theChannelFuturewhich is associated with this event.java.lang.StringtoString()
-
-
-
Field Detail
-
channel
private final Channel channel
-
cause
private final java.lang.Throwable cause
-
-
Constructor Detail
-
DefaultExceptionEvent
public DefaultExceptionEvent(Channel channel, java.lang.Throwable cause)
Creates a new instance.
-
-
Method Detail
-
getChannel
public Channel getChannel()
Description copied from interface:ChannelEventReturns theChannelwhich is associated with this event.- Specified by:
getChannelin interfaceChannelEvent
-
getFuture
public ChannelFuture getFuture()
Description copied from interface:ChannelEventReturns theChannelFuturewhich is associated with this event. If this event is an upstream event, this method will always return aSucceededChannelFuturebecause 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:
getFuturein interfaceChannelEvent
-
getCause
public java.lang.Throwable getCause()
Description copied from interface:ExceptionEventReturns the raised exception.- Specified by:
getCausein interfaceExceptionEvent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-