Class: CadenceThrift::DomainNotActiveError

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
DOMAINNAME =
2
CURRENTCLUSTER =
3
ACTIVECLUSTER =
4
FIELDS =
{
  MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
  DOMAINNAME => {:type => ::Thrift::Types::STRING, :name => 'domainName'},
  CURRENTCLUSTER => {:type => ::Thrift::Types::STRING, :name => 'currentCluster'},
  ACTIVECLUSTER => {:type => ::Thrift::Types::STRING, :name => 'activeCluster'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


771
772
773
774
775
776
# File 'lib/gen/thrift/shared_types.rb', line 771

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