Exception: Thrift::ProtocolException

Inherits:
Exception
  • Object
show all
Defined in:
lib/thrift/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.



25
26
27
28
# File 'lib/thrift/protocol.rb', line 25

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



23
24
25
# File 'lib/thrift/protocol.rb', line 23

def type
  @type
end