Class ChannelClosedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ChannelClosedException
    extends CoroutineException
    A coroutine exception that is thrown if a closed channel is accessed.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChannelId<?> getChannelId()
      Returns the channel id.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ChannelClosedException

        public ChannelClosedException​(ChannelId<?> id)
        Creates a new instance.
        Parameters:
        id - The channel ID
    • Method Detail

      • getChannelId

        public ChannelId<?> getChannelId()
        Returns the channel id.
        Returns:
        The channel id