Class: Storm::InvalidTopologyException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- Storm::InvalidTopologyException
- 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) ⇒ InvalidTopologyException
constructor
A new instance of InvalidTopologyException.
- #message ⇒ Object
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ InvalidTopologyException
Returns a new instance of InvalidTopologyException.
413 414 415 416 |
# File 'lib/storm/thrift/storm_types.rb', line 413 def initialize(=nil) super() self.msg = end |
Instance Method Details
#message ⇒ Object
418 |
# File 'lib/storm/thrift/storm_types.rb', line 418 def ; msg end |
#struct_fields ⇒ Object
426 |
# File 'lib/storm/thrift/storm_types.rb', line 426 def struct_fields; FIELDS; end |
#validate ⇒ Object
428 429 430 |
# File 'lib/storm/thrift/storm_types.rb', line 428 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field msg is unset!') unless @msg end |