Exception: Quicsilver::Protocol::FrameError
- Inherits:
-
StandardError
- Object
- StandardError
- Quicsilver::Protocol::FrameError
- 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
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(msg = nil, error_code: H3_FRAME_UNEXPECTED) ⇒ FrameError
constructor
A new instance of FrameError.
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_code ⇒ Object (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 |