Class: ExperimentNotFoundException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- ExperimentNotFoundException
- 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
-
#initialize(message = nil) ⇒ ExperimentNotFoundException
constructor
A new instance of ExperimentNotFoundException.
- #struct_fields ⇒ Object
- #validate ⇒ Object
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(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
42 |
# File 'lib/airavata_errors_types.rb', line 42 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |