Exception: Thrift::ProtocolException
- 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
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(type = UNKNOWN, message = nil) ⇒ ProtocolException
constructor
A new instance of ProtocolException.
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, =nil) super() @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
34 35 36 |
# File 'lib/thrift/protocol/base_protocol.rb', line 34 def type @type end |