Class: Storm::InvalidTopologyException

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

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(message=nil)
  super()
  self.msg = message
end

Instance Method Details

#messageObject



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

def message; msg end

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


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