Class: CadenceThrift::ClientVersionNotSupportedError

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

FEATUREVERSION =
1
CLIENTIMPL =
2
SUPPORTEDVERSIONS =
3
FIELDS =
{
  FEATUREVERSION => {:type => ::Thrift::Types::STRING, :name => 'featureVersion'},
  CLIENTIMPL => {:type => ::Thrift::Types::STRING, :name => 'clientImpl'},
  SUPPORTEDVERSIONS => {:type => ::Thrift::Types::STRING, :name => 'supportedVersions'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


864
865
866
867
868
# File 'lib/gen/thrift/shared_types.rb', line 864

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