Class: CadenceThrift::EntityNotExistsError

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

Constant Summary collapse

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

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ EntityNotExistsError

Returns a new instance of EntityNotExistsError.



669
670
671
672
# File 'lib/gen/thrift/shared_types.rb', line 669

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

Instance Method Details

#struct_fieldsObject



680
# File 'lib/gen/thrift/shared_types.rb', line 680

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


682
683
684
# File 'lib/gen/thrift/shared_types.rb', line 682

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