Class: LaunchValidationException

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

Constant Summary collapse

VALIDATIONRESULT =
1
ERRORMESSAGE =
2
FIELDS =
{
  VALIDATIONRESULT => {:type => ::Thrift::Types::STRUCT, :name => 'validationResult', :class => ::ValidationResults},
  ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


281
282
283
# File 'lib/airavata_errors_types.rb', line 281

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