public class ChannelStateException extends IOException
WeakReference, so the information may be deallocated at any moment.
Former channel name can be retrieved via getChannelName().
The reference also will not be serialized.| Constructor and Description |
|---|
ChannelStateException(Channel channel,
String message) |
ChannelStateException(Channel channel,
String message,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel()
Gets channel associated with the exception.
|
String |
getChannelName()
Gets channel name.
|
WeakReference<Channel> |
getChannelRef() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ChannelStateException(@CheckForNull Channel channel, @Nonnull String message)
public ChannelStateException(@CheckForNull Channel channel, String message, @CheckForNull Throwable cause)
@CheckForNull public WeakReference<Channel> getChannelRef()
@Nonnull public String getChannelName()
unknown if it is not known.@CheckForNull public Channel getChannel()
WeakReference, so the information may be deallocated at any moment.
Former channel name can be retrieved via getChannelName().
The reference also will not be serialized.null otherwise.public String getMessage()
getMessage in class ThrowableCopyright © 2004–2018. All rights reserved.