Class: CadenceThrift::RetryTaskError

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
DOMAINID =
2
WORKFLOWID =
3
RUNID =
4
NEXTEVENTID =
5
FIELDS =
{
  MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
  DOMAINID => {:type => ::Thrift::Types::STRING, :name => 'domainId', :optional => true},
  WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
  RUNID => {:type => ::Thrift::Types::STRING, :name => 'runId', :optional => true},
  NEXTEVENTID => {:type => ::Thrift::Types::I64, :name => 'nextEventId', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


843
844
845
# File 'lib/gen/thrift/shared_types.rb', line 843

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