Exception: Rex::Proto::DCERPC::Exceptions::InvalidSocket

Inherits:
Error
  • Object
show all
Defined in:
lib/rex/proto/dcerpc/exceptions.rb

Instance Method Summary collapse

Methods inherited from Error

#get_error

Constructor Details

#initialize(message = nil) ⇒ InvalidSocket

Returns a new instance of InvalidSocket.



149
150
151
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 149

def initialize(message=nil)
    @message = message
end

Instance Method Details

#to_sObject



153
154
155
156
157
158
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 153

def to_s
    str = 'Invalid Socket.'
    if @message
        str += " #{@message}"
    end
end