Class: Gossiperl::Client::Thrift::DigestError
- Inherits:
-
Object
- Object
- Gossiperl::Client::Thrift::DigestError
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gossiperl_client/headers.rb,
lib/gossiperl_client/thrift/gossiperl_types.rb
Constant Summary collapse
- NAME =
1
- HEARTBEAT =
2
- ERROR_CODE =
3
- ERROR_ENTITY =
4
- ERROR_ENTITY_NAME =
5
- ERROR_MESSAGE =
6
- REPLY_ID =
7
- FIELDS =
{ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, HEARTBEAT => {:type => ::Thrift::Types::I64, :name => 'heartbeat'}, ERROR_CODE => {:type => ::Thrift::Types::I32, :name => 'error_code'}, ERROR_ENTITY => {:type => ::Thrift::Types::STRING, :name => 'error_entity'}, ERROR_ENTITY_NAME => {:type => ::Thrift::Types::STRING, :name => 'error_entity_name'}, ERROR_MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'error_message'}, REPLY_ID => {:type => ::Thrift::Types::STRING, :name => 'reply_id'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
78 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 78 def struct_fields; FIELDS; end |
#validate ⇒ Object
80 81 82 83 84 85 86 87 88 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 80 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field heartbeat is unset!') unless @heartbeat raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error_code is unset!') unless @error_code raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error_entity is unset!') unless @error_entity raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error_entity_name is unset!') unless @error_entity_name raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error_message is unset!') unless @error_message raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field reply_id is unset!') unless @reply_id end |