Class: Kafka::Protocol::AddPartitionsToTxnResponse::PartitionError
- Inherits:
-
Object
- Object
- Kafka::Protocol::AddPartitionsToTxnResponse::PartitionError
- Defined in:
- lib/kafka/protocol/add_partitions_to_txn_response.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#partition ⇒ Object
readonly
Returns the value of attribute partition.
Instance Method Summary collapse
-
#initialize(partition:, error_code:) ⇒ PartitionError
constructor
A new instance of PartitionError.
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_code ⇒ Object (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 |
#partition ⇒ Object (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 |