Exception: Rex::Proto::DCERPC::Exceptions::BindError

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) ⇒ BindError

Returns a new instance of BindError.


136
137
138
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 136

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

Instance Method Details

#to_sObject


140
141
142
143
144
145
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 140

def to_s
    str = 'Failed to bind.'
    if @message
        str += " #{@message}"
    end
end