Class: Storm::ErrorInfo
- Inherits:
-
Object
- Object
- Storm::ErrorInfo
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/storm/thrift/storm_types.rb
Constant Summary collapse
- ERROR =
1
- ERROR_TIME_SECS =
2
- FIELDS =
{ ERROR => {:type => ::Thrift::Types::STRING, :name => 'error'}, ERROR_TIME_SECS => {:type => ::Thrift::Types::I32, :name => 'error_time_secs'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
529 |
# File 'lib/storm/thrift/storm_types.rb', line 529 def struct_fields; FIELDS; end |
#validate ⇒ Object
531 532 533 534 |
# File 'lib/storm/thrift/storm_types.rb', line 531 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error is unset!') unless @error raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error_time_secs is unset!') unless @error_time_secs end |