Exception: Ice::DNSException

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

Constant Summary collapse

ICE_TYPE =
T_DNSException

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#ice_name, #inspect

Constructor Details

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

Returns a new instance of DNSException.



560
561
562
563
# File 'lib/Ice/LocalException.rb', line 560

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

Instance Attribute Details

#errorObject

Returns the value of attribute error.



569
570
571
# File 'lib/Ice/LocalException.rb', line 569

def error
  @error
end

#hostObject

Returns the value of attribute host.



569
570
571
# File 'lib/Ice/LocalException.rb', line 569

def host
  @host
end

Instance Method Details

#to_sObject



565
566
567
# File 'lib/Ice/LocalException.rb', line 565

def to_s
    'Ice::DNSException'
end