Class: LaunchValidationException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- LaunchValidationException
- 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_fields ⇒ Object
279 |
# File 'lib/airavata_errors_types.rb', line 279 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |