Class FieldSectionSizeException

All Implemented Interfaces:
Serializable

public final class FieldSectionSizeException extends Http3Exception
A decoded field section is larger than the decoder's SETTINGS_MAX_FIELD_SECTION_SIZE (RFC 9114 §4.2.2). This is a stream error: the section was still decoded to the end and acknowledged, so the QPACK state is intact and the connection can continue. A server would typically answer the request with 431 (Request Header Fields Too Large), or reset the stream with Http3Exception.errorCode().
See Also:
  • Method Details

    • size

      public long size()
      The size of the field section, counted as SETTINGS_MAX_FIELD_SECTION_SIZE counts it.
      Returns:
      the size in octets, at least as far as decoding counted
    • limit

      public long limit()
      The limit the section exceeded: the decoder's SETTINGS_MAX_FIELD_SECTION_SIZE.
      Returns:
      the limit in octets