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
NOT_IMPLEMENTED =
5
DEPTH_LIMIT =
6

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.



36
37
38
39
# File 'lib/thrift/protocol/base_protocol.rb', line 36

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end