Class QuicStreamException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.github.mahmoudimus.quic.QuicStreamException
All Implemented Interfaces:
Serializable

public class QuicStreamException extends IOException
A stream operation failed because the peer abandoned the stream: it reset the stream (RESET_STREAM, seen by a reader) or asked this side to stop sending (STOP_SENDING, seen by a writer).
See Also:
  • Constructor Details

    • QuicStreamException

      public QuicStreamException(QuicStreamException.Kind kind, long errorCode)
      An exception.
      Parameters:
      kind - how the peer abandoned the stream
      errorCode - the peer's application error code
  • Method Details

    • kind

      public QuicStreamException.Kind kind()
      How the peer abandoned the stream.
      Returns:
      the kind
    • errorCode

      public long errorCode()
      The peer's application error code.
      Returns:
      the code