Exception: Quicsilver::Protocol::FrameError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/quicsilver/protocol/frames.rb

Overview

Protocol errors that carry an HTTP/3 error code for CONNECTION_CLOSE / RESET_STREAM. FrameError → connection error (CONNECTION_CLOSE) MessageError → stream error (RESET_STREAM) on request streams

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, error_code: H3_FRAME_UNEXPECTED) ⇒ FrameError

Returns a new instance of FrameError.



47
48
49
50
# File 'lib/quicsilver/protocol/frames.rb', line 47

def initialize(msg = nil, error_code: H3_FRAME_UNEXPECTED)
  @error_code = error_code
  super(msg)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



46
47
48
# File 'lib/quicsilver/protocol/frames.rb', line 46

def error_code
  @error_code
end