Class: ValidatorResult
- Inherits:
-
Object
- Object
- ValidatorResult
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata_commons_types.rb,
lib/airavata_errors_types.rb
Overview
This data structure can be used to store the validation results captured during validation step and during the launchExperiment operation it can be easilly checked to see the errors occured during the experiment launch operation
Constant Summary collapse
- RESULT =
1
- ERRORDETAILS =
2
- FIELDS =
{ RESULT => {:type => ::Thrift::Types::BOOL, :name => 'result'}, ERRORDETAILS => {:type => ::Thrift::Types::STRING, :name => 'errorDetails', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
240 |
# File 'lib/airavata_errors_types.rb', line 240 def struct_fields; FIELDS; end |
#validate ⇒ Object
242 243 244 |
# File 'lib/airavata_errors_types.rb', line 242 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field result is unset!') if @result.nil? end |