Class: CadenceThrift::QueryRejected

Inherits:
Object
  • 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

CLOSESTATUS =
10
FIELDS =
{
  CLOSESTATUS => {:type => ::Thrift::Types::I32, :name => 'closeStatus', :optional => true, :enum_class => ::CadenceThrift::WorkflowExecutionCloseStatus}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



4096
4097
4098
4099
4100
# File 'lib/gen/thrift/shared_types.rb', line 4096

def validate
  unless @closeStatus.nil? || ::CadenceThrift::WorkflowExecutionCloseStatus::VALID_VALUES.include?(@closeStatus)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field closeStatus!')
  end
end