Class: Biryani::StreamError

Inherits:
Object
  • Object
show all
Defined in:
lib/biryani/stream_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(code, stream_id, debug) ⇒ StreamError

Returns a new instance of StreamError.

Parameters:

  • code (Integer)
  • stream_id (stream_id)
  • debug (String)


6
7
8
9
10
# File 'lib/biryani/stream_error.rb', line 6

def initialize(code, stream_id, debug)
  @code = code
  @stream_id = stream_id
  @debug = debug
end

Instance Method Details

#rst_streamRstStream

Returns:

  • (RstStream)


13
14
15
# File 'lib/biryani/stream_error.rb', line 13

def rst_stream
  Frame::RstStream.new(@stream_id, @code)
end