Class: Kafka::Protocol::AddPartitionsToTxnResponse::PartitionError

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/protocol/add_partitions_to_txn_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(partition:, error_code:) ⇒ PartitionError

Returns a new instance of PartitionError.



9
10
11
12
# File 'lib/kafka/protocol/add_partitions_to_txn_response.rb', line 9

def initialize(partition:, error_code:)
  @partition = partition
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



7
8
9
# File 'lib/kafka/protocol/add_partitions_to_txn_response.rb', line 7

def error_code
  @error_code
end

#partitionObject (readonly)

Returns the value of attribute partition.



7
8
9
# File 'lib/kafka/protocol/add_partitions_to_txn_response.rb', line 7

def partition
  @partition
end