Exception: Ice::UnsupportedProtocolException

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

Constant Summary collapse

ICE_TYPE =
T_UnsupportedProtocolException

Instance Attribute Summary collapse

Attributes inherited from ProtocolException

#reason

Instance Method Summary collapse

Methods inherited from Exception

#ice_name, #inspect

Constructor Details

#initialize(reason = '', bad = ::Ice::ProtocolVersion.new, supported = ::Ice::ProtocolVersion.new) ⇒ UnsupportedProtocolException

Returns a new instance of UnsupportedProtocolException.



714
715
716
717
718
# File 'lib/Ice/LocalException.rb', line 714

def initialize(reason='', bad=::Ice::ProtocolVersion.new, supported=::Ice::ProtocolVersion.new)
    super(reason)
    @bad = bad
    @supported = supported
end

Instance Attribute Details

#badObject

Returns the value of attribute bad.



724
725
726
# File 'lib/Ice/LocalException.rb', line 724

def bad
  @bad
end

#supportedObject

Returns the value of attribute supported.



724
725
726
# File 'lib/Ice/LocalException.rb', line 724

def supported
  @supported
end

Instance Method Details

#to_sObject



720
721
722
# File 'lib/Ice/LocalException.rb', line 720

def to_s
    'Ice::UnsupportedProtocolException'
end