Exception: Ice::UnexpectedObjectException

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

Constant Summary collapse

ICE_TYPE =
T_UnexpectedObjectException

Instance Attribute Summary collapse

Attributes inherited from ProtocolException

#reason

Instance Method Summary collapse

Methods inherited from Exception

#ice_name, #inspect

Constructor Details

#initialize(reason = '', type = '', expectedType = '') ⇒ UnexpectedObjectException

Returns a new instance of UnexpectedObjectException.



956
957
958
959
960
# File 'lib/Ice/LocalException.rb', line 956

def initialize(reason='', type='', expectedType='')
    super(reason)
    @type = type
    @expectedType = expectedType
end

Instance Attribute Details

#expectedTypeObject

Returns the value of attribute expectedType.



966
967
968
# File 'lib/Ice/LocalException.rb', line 966

def expectedType
  @expectedType
end

#typeObject

Returns the value of attribute type.



966
967
968
# File 'lib/Ice/LocalException.rb', line 966

def type
  @type
end

Instance Method Details

#to_sObject



962
963
964
# File 'lib/Ice/LocalException.rb', line 962

def to_s
    'Ice::UnexpectedObjectException'
end