Exception: Thrift::ProtocolException

Inherits:
Exception
  • Object
show all
Defined in:
lib/thrift/protocol/base_protocol.rb

Constant Summary collapse

UNKNOWN =
0
INVALID_DATA =
1
NEGATIVE_SIZE =
2
SIZE_LIMIT =
3
BAD_VERSION =
4

Instance Attribute Summary collapse

Attributes inherited from Exception

#message

Instance Method Summary collapse

Constructor Details

#initialize(type = UNKNOWN, message = nil) ⇒ ProtocolException

Returns a new instance of ProtocolException.



34
35
36
37
# File 'lib/thrift/protocol/base_protocol.rb', line 34

def initialize(type=UNKNOWN, message=nil)
  super(message)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



32
33
34
# File 'lib/thrift/protocol/base_protocol.rb', line 32

def type
  @type
end