Exception: Ice::DNSException

Inherits:
LocalException show all
Defined in:
lib/Ice/LocalException.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#ice_id, #ice_name, #inspect

Constructor Details

#initialize(error = 0, host = '') ⇒ DNSException

Returns a new instance of DNSException.

[View source]

540
541
542
543
# File 'lib/Ice/LocalException.rb', line 540

def initialize(error=0, host='')
    @error = error
    @host = host
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.


549
550
551
# File 'lib/Ice/LocalException.rb', line 549

def error
  @error
end

#hostObject

Returns the value of attribute host.


549
550
551
# File 'lib/Ice/LocalException.rb', line 549

def host
  @host
end

Instance Method Details

#to_sObject

[View source]

545
546
547
# File 'lib/Ice/LocalException.rb', line 545

def to_s
    '::Ice::DNSException'
end