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