Exception: Thrift::ProtocolException
- 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
-
#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.
25 26 27 28 |
# File 'lib/thrift/protocol.rb', line 25 def initialize(type=UNKNOWN, =nil) super() @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
23 24 25 |
# File 'lib/thrift/protocol.rb', line 23 def type @type end |