Class: ExperimentNotFoundException

Inherits:
Thrift::Exception
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/airavata_errors_types.rb

Overview

This exception is thrown when a client asks to perform an operation on an experiment that does not exist.

identifier: A description of the experiment that was not found on the server.

key: The value passed from the client in the identifier, which was not found.

Constant Summary collapse

MESSAGE =
1
FIELDS =
{
  MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
}

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ ExperimentNotFoundException

Returns a new instance of ExperimentNotFoundException.



31
32
33
34
# File 'lib/airavata_errors_types.rb', line 31

def initialize(message=nil)
  super()
  self.message = message
end

Instance Method Details

#struct_fieldsObject



42
# File 'lib/airavata_errors_types.rb', line 42

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


44
45
46
# File 'lib/airavata_errors_types.rb', line 44

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message
end