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.



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

def initialize(stream)
	@stream = stream
end

Instance Method Details

#streamObject



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

def stream
	@stream
end

#to_sObject



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

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