Exception: Ice::UnsupportedProtocolException

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

Instance Attribute Summary collapse

Attributes inherited from ProtocolException

#reason

Instance Method Summary collapse

Methods inherited from Exception

#ice_id, #ice_name, #inspect

Constructor Details

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

Returns a new instance of UnsupportedProtocolException.



684
685
686
687
688
# File 'lib/Ice/LocalException.rb', line 684

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.



694
695
696
# File 'lib/Ice/LocalException.rb', line 694

def bad
  @bad
end

#supportedObject

Returns the value of attribute supported.



694
695
696
# File 'lib/Ice/LocalException.rb', line 694

def supported
  @supported
end

Instance Method Details

#to_sObject



690
691
692
# File 'lib/Ice/LocalException.rb', line 690

def to_s
    '::Ice::UnsupportedProtocolException'
end