Class: Storm::ErrorInfo

Inherits:
Object
  • Object
show all
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_fieldsObject



529
# File 'lib/storm/thrift/storm_types.rb', line 529

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


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