Class: ProjectNotFoundException

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

Overview

1: optional string identifier, 2: optional string key

Constant Summary collapse

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

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ ProjectNotFoundException

Returns a new instance of ProjectNotFoundException.



56
57
58
59
# File 'lib/airavata_errors_types.rb', line 56

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

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


69
70
71
# File 'lib/airavata_errors_types.rb', line 69

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