Exception: Rex::StreamClosedError

Inherits:
IOError
  • Object
show all
Includes:
Exception
Defined in:
lib/rex/exceptions.rb

Overview

This error is thrown when a stream is detected as being closed.

Instance Method Summary collapse

Constructor Details

#initialize(stream) ⇒ StreamClosedError

Returns a new instance of StreamClosedError.



109
110
111
# File 'lib/rex/exceptions.rb', line 109

def initialize(stream)
  @stream = stream
end

Instance Method Details

#streamObject



113
114
115
# File 'lib/rex/exceptions.rb', line 113

def stream
  @stream
end

#to_sObject



117
118
119
# File 'lib/rex/exceptions.rb', line 117

def to_s
  "Stream #{@stream} is closed."
end