Class: Storm::AlreadyAliveException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- Storm::AlreadyAliveException
- 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) ⇒ AlreadyAliveException
constructor
A new instance of AlreadyAliveException.
- #message ⇒ Object
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ AlreadyAliveException
Returns a new instance of AlreadyAliveException.
365 366 367 368 |
# File 'lib/storm/thrift/storm_types.rb', line 365 def initialize(=nil) super() self.msg = end |
Instance Method Details
#message ⇒ Object
370 |
# File 'lib/storm/thrift/storm_types.rb', line 370 def ; msg end |
#struct_fields ⇒ Object
378 |
# File 'lib/storm/thrift/storm_types.rb', line 378 def struct_fields; FIELDS; end |
#validate ⇒ Object
380 381 382 |
# File 'lib/storm/thrift/storm_types.rb', line 380 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field msg is unset!') unless @msg end |