Class: Storm::NotAliveException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- Storm::NotAliveException
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/storm/thrift/storm_types.rb
Constant Summary collapse
- MSG =
1
- FIELDS =
{ MSG => {:type => ::Thrift::Types::STRING, :name => 'msg'} }
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ NotAliveException
constructor
A new instance of NotAliveException.
- #message ⇒ Object
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ NotAliveException
Returns a new instance of NotAliveException.
389 390 391 392 |
# File 'lib/storm/thrift/storm_types.rb', line 389 def initialize(=nil) super() self.msg = end |
Instance Method Details
#message ⇒ Object
394 |
# File 'lib/storm/thrift/storm_types.rb', line 394 def ; msg end |
#struct_fields ⇒ Object
402 |
# File 'lib/storm/thrift/storm_types.rb', line 402 def struct_fields; FIELDS; end |
#validate ⇒ Object
404 405 406 |
# File 'lib/storm/thrift/storm_types.rb', line 404 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field msg is unset!') unless @msg end |