
    9h/d                     	   S SK Jr  S SKJrJr  / SQr " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S  S!\5      r " S" S#\5      r " S$ S%\5      r " S& S'\5      r " S( S)\5      r " S* S+\5      r " S, S-\5      r " S. S/\5      r " S0 S1\5      r " S2 S3\5      r " S4 S5\5      r  " S6 S7\5      r! " S8 S9\5      r" " S: S;\5      r# " S< S=\5      r$ " S> S?\$5      r% " S@ SA\$5      r& " SB SC\$5      r' " SD SE\$5      r(\(r) " SF SG\$5      r* " SH SI\$5      r+ " SJ SK\$5      r, " SL SM\$5      r- " SN SO\$5      r. " SP SQ\$5      r/ " SR SS\$5      r0 " ST SU\$5      r1 " SV SW\$5      r2 " SX SY\$5      r3 " SZ S[\$5      r4 " S\ S]\$5      r5\5r6 " S^ S_\$5      r7\7r8 " S` Sa\$5      r9\9r: " Sb Sc\$5      r; " Sd Se\$5      r< " Sf Sg\$5      r= " Sh Si\$5      r> " Sj Sk\$5      r? " Sl Sm\$5      r@ " Sn So\$5      rA " Sp Sq\$5      rB " Sr Ss\$5      rC " St Su\$5      rD " Sv Sw\$5      rE " Sx Sy\$5      rF " Sz S{\$5      rG " S| S}\$5      rH " S~ S\$5      rI " S S\$5      rJ " S S\$5      rK " S S\$5      rL " S S\$5      rM " S S\$5      rN " S S\$5      rO " S S\$5      rP " S S\$5      rQ " S S\$5      rR " S S\$5      rS " S S\$5      rT " S S\$5      rU " S S\$5      rV " S S\$5      rW " S S\$5      rX " S S\$5      rY " S S\$5      rZ " S S\$5      r[ " S S\$5      r\ " S S\$5      r] " S S\$5      r^ " S S\$5      r_ " S S\$5      r` " S S\$5      ra " S S\$5      rb " S S\$5      rc " S S\$5      rd " S S\$5      re " S S\$5      rf " S S\$5      rg " S S\$5      rh " S S\$5      ri " S S\$5      rj " S S\$5      rk " S S\$5      rl " S S\$5      rm " S S\$5      rn " S S\$5      ro " S S\$5      rp " S S\$5      rq " S S\$5      rr " S S\$5      rs\" S\tS9ruS\uS\\u   4S jrv\v" \$5       V s0 s H  o R                  U _M     sn rxS\yS\t\$   4S jrzgs  sn f )    )Iterable)AnyTypeVar)FConsumerStoppedErrorNoOffsetForPartitionErrorRecordTooLargeErrorProducerClosed
KafkaErrorIllegalStateErrorIllegalArgumentErrorNoBrokersAvailableNodeNotReadyErrorKafkaProtocolErrorCorrelationIdError	CancelledTooManyInFlightRequestsStaleMetadataUnrecognizedBrokerVersionIncompatibleBrokerVersionCommitFailedError AuthenticationMethodNotSupportedAuthenticationFailedErrorBrokerResponseErrorNoErrorUnknownErrorOffsetOutOfRangeErrorCorruptRecordExceptionUnknownTopicOrPartitionErrorInvalidFetchRequestErrorLeaderNotAvailableErrorNotLeaderForPartitionErrorRequestTimedOutErrorBrokerNotAvailableErrorReplicaNotAvailableErrorMessageSizeTooLargeErrorStaleControllerEpochErrorOffsetMetadataTooLargeErrorStaleLeaderEpochCodeErrorGroupLoadInProgressError!GroupCoordinatorNotAvailableErrorNotCoordinatorForGroupErrorInvalidTopicErrorRecordListTooLargeErrorNotEnoughReplicasError!NotEnoughReplicasAfterAppendErrorInvalidRequiredAcksErrorIllegalGenerationErrorInconsistentGroupProtocolErrorInvalidGroupIdErrorUnknownMemberIdErrorInvalidSessionTimeoutErrorRebalanceInProgressErrorInvalidCommitOffsetSizeErrorTopicAuthorizationFailedErrorGroupAuthorizationFailedErrorClusterAuthorizationFailedErrorInvalidTimestampErrorUnsupportedSaslMechanismErrorIllegalSaslStateErrorUnsupportedVersionErrorTopicAlreadyExistsErrorInvalidPartitionsErrorInvalidReplicationFactorError!InvalidReplicationAssignmentErrorInvalidConfigurationErrorNotControllerErrorInvalidRequestError UnsupportedForMessageFormatErrorPolicyViolationErrorKafkaUnavailableErrorKafkaTimeoutErrorKafkaConnectionErrorUnsupportedCodecErrorc                   8   ^  \ rS rSrSrSrS\4U 4S jjrSrU =r	$ )r
   Q   Freturnc                    > U R                   (       d  U R                  R                  $ U R                  R                   S[        TU ]  5        3$ )Nz: )args	__class____name__super__str__selfrQ   s    TC:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\site-packages\aiokafka/errors.pyrT   KafkaError.__str__V   s>    yy>>***..))*"UW_->,?@@     )
rR   
__module____qualname____firstlineno__	retriableinvalid_metadatastrrT   __static_attributes____classcell__rQ   s   @rW   r
   r
   Q   s"    IA A ArY   r
   c                       \ rS rSrSrg)r   \   rZ   NrR   r[   r\   r]   ra   rZ   rY   rW   r   r   \       rY   r   c                       \ rS rSrSrg)r   `   rZ   Nrf   rZ   rY   rW   r   r   `   rg   rY   r   c                       \ rS rSrSrSrSrg)r   d   TrZ   NrR   r[   r\   r]   r^   r_   ra   rZ   rY   rW   r   r   d       IrY   r   c                       \ rS rSrSrSrg)r   i   TrZ   NrR   r[   r\   r]   r^   ra   rZ   rY   rW   r   r   i       IrY   r   c                       \ rS rSrSrSrg)r   m   TrZ   Nrp   rZ   rY   rW   r   r   m   rq   rY   r   c                       \ rS rSrSrSrg)r   q   TrZ   Nrp   rZ   rY   rW   r   r   q   rq   rY   r   c                       \ rS rSrSrSrg)r   u   TrZ   Nrp   rZ   rY   rW   r   r   u   rq   rY   r   c                       \ rS rSrSrSrg)r   y   TrZ   Nrp   rZ   rY   rW   r   r   y   rq   rY   r   c                       \ rS rSrSrSrSrg)r   }   TrZ   Nrl   rZ   rY   rW   r   r   }   rm   rY   r   c                       \ rS rSrSrSrg)MetadataEmptyBrokerList   TrZ   Nrp   rZ   rY   rW   r}   r}      rq   rY   r}   c                       \ rS rSrSrg)r      rZ   Nrf   rZ   rY   rW   r   r      rg   rY   r   c                       \ rS rSrSrg)r      rZ   Nrf   rZ   rY   rW   r   r      rg   rY   r   c                   8   ^  \ rS rSrS\S\SS4U 4S jjrSrU =r$ )r      rP   kwargsrN   Nc                 .   > [         TU ]  " S/UQ70 UD6  g )NaW  Commit cannot be completed since the group has already
            rebalanced and assigned the partitions to another member.
            This means that the time between subsequent calls to poll()
            was longer than the configured max_poll_interval_ms, which
            typically implies that the poll loop is spending too much
            time message processing. You can address this either by
            increasing the rebalance timeout with max_poll_interval_ms,
            or by reducing the maximum size of batches returned in poll()
            with max_poll_records.
            rS   __init__)rV   rP   r   rQ   s      rW   r   CommitFailedError.__init__   s)    		
 	
 	
rY   rZ   )rR   r[   r\   r]   r   r   ra   rb   rc   s   @rW   r   r      s"    
c 
S 
T 
 
rY   r   c                       \ rS rSrSrg)r      rZ   Nrf   rZ   rY   rW   r   r      rg   rY   r   c                       \ rS rSrSrSrg)r      FrZ   Nrp   rZ   rY   rW   r   r      s    IrY   r   c                       \ rS rSrSrg)rH      rZ   Nrf   rZ   rY   rW   rH   rH      rg   rY   rH   c                       \ rS rSrSrg)rI      rZ   Nrf   rZ   rY   rW   rI   rI      rg   rY   rI   c                       \ rS rSrSrSrSrg)rJ      TrZ   Nrl   rZ   rY   rW   rJ   rJ      rm   rY   rJ   c                       \ rS rSrSrg)rK      rZ   Nrf   rZ   rY   rW   rK   rK      rg   rY   rK   c                       \ rS rSrSrg)KafkaConfigurationError   rZ   Nrf   rZ   rY   rW   r   r      rg   rY   r   c                       \ rS rSrSrg)QuotaViolationError   rZ   Nrf   rZ   rY   rW   r   r      rg   rY   r   c                       \ rS rSrSrSrg)r      zKRaised on `get*` methods of Consumer if it's cancelled, even pending
ones.
rZ   NrR   r[   r\   r]   __doc__ra   rZ   rY   rW   r   r      s    rY   r   c                       \ rS rSrSrSrg)IllegalOperation   zRaised if you try to execute an operation, that is not available with
current configuration. For example trying to commit if no group_id was
given.
rZ   Nr   rZ   rY   rW   r   r      s    rY   r   c                       \ rS rSrSrg)r      rZ   Nrf   rZ   rY   rW   r   r      rg   rY   r   c                       \ rS rSrSrg)r      rZ   Nrf   rZ   rY   rW   r   r      rg   rY   r   c                       \ rS rSrSrg)r	      rZ   Nrf   rZ   rY   rW   r	   r	      rg   rY   r	   c                   >   ^  \ rS rSrSr SS\SS4U 4S jjjrSrU =r$ )	ProducerFenced   zAnother producer with the same transactional ID went online.
NOTE: As it seems this will be raised by Broker if transaction timeout
occurred also.
msgrN   Nc                 $   > [         TU ]  U5        g Nr   )rV   r   rQ   s     rW   r   ProducerFenced.__init__   s     	rY   rZ   )zThere is a newer producer using the same transactional_id ortransaction timeout occurred (check that processing time is below transaction_timeout_ms))	rR   r[   r\   r]   r   r`   r   ra   rb   rc   s   @rW   r   r      s)    , 
 rY   r   c                   T   ^  \ rS rSr% \\S'   \\S'   Sr\\S'   S\4U 4S jjrSr	U =r
$ )	r      errnomessage descriptionrN   c                 @   > SU R                    S[        TU ]	  5        3$ )z$Add errno to standard KafkaError strz[Error z] )r   rS   rT   rU   s    rW   rT   BrokerResponseError.__str__   s"    Buw'8&9::rY   rZ   )rR   r[   r\   r]   int__annotations__r`   r   rT   ra   rb   rc   s   @rW   r   r      s(    JLK; ; ;rY   r   c                        \ rS rSrSrSrSrSrg)r      r   NO_ERRORzNo error--it worked!rZ   NrR   r[   r\   r]   r   r   r   ra   rZ   rY   rW   r   r      s    EG(KrY   r   c                        \ rS rSrSrSrSrSrg)r      UNKNOWNzAn unexpected server error.rZ   Nr   rZ   rY   rW   r   r      s    EG/KrY   r   c                        \ rS rSrSrSrSrSrg)r   i     OFFSET_OUT_OF_RANGEzlThe requested offset is outside the range of offsets maintained by the server for the given topic/partition.rZ   Nr   rZ   rY   rW   r   r     s    E#G	C rY   r   c                        \ rS rSrSrSrSrSrg)r   i
     CORRUPT_MESSAGEzZThis message has failed its CRC checksum, exceeds the valid size, or is otherwise corrupt.rZ   Nr   rZ   rY   rW   r   r   
  s    EG	0 rY   r   c                   (    \ rS rSrSrSrSrSrSrSr	g)r   i     UNKNOWN_TOPIC_OR_PARTITIONzLThis request is for a topic or partition that does not exist on this broker.TrZ   N
rR   r[   r\   r]   r   r   r   r^   r_   ra   rZ   rY   rW   r   r     s#    E*G	!  IrY   r   c                        \ rS rSrSrSrSrSrg)r   i"     INVALID_FETCH_SIZEz The message has a negative size.rZ   Nr   rZ   rY   rW   r   r   "  s    E"G4KrY   r   c                   (    \ rS rSrSrSrSrSrSrSr	g)r    i(     LEADER_NOT_AVAILABLEzThis error is thrown if we are in the middle of a leadership election and there is currently no leader for this partition and hence it is unavailable for writes.TrZ   Nr   rZ   rY   rW   r    r    (  s$    E$G	B 
 IrY   r    c                   (    \ rS rSrSrSrSrSrSrSr	g)r!   i4     NOT_LEADER_FOR_PARTITIONzThis error is thrown if the client attempts to send messages to a replica that is not the leader for some partition. It indicates that the clients metadata is out of date.TrZ   Nr   rZ   rY   rW   r!   r!   4  s#    E(G	  IrY   r!   c                   $    \ rS rSrSrSrSrSrSrg)r"   iA     REQUEST_TIMED_OUTzYThis error is thrown if the request exceeds the user-specified time limit in the request.TrZ   N	rR   r[   r\   r]   r   r   r   r^   ra   rZ   rY   rW   r"   r"   A  s    E!G	5  IrY   r"   c                        \ rS rSrSrSrSrSrg)r#   iK     BROKER_NOT_AVAILABLEzYThis is not a client facing error and is used mostly by tools when a broker is not alive.rZ   Nr   rZ   rY   rW   r#   r#   K  s    E$G	- rY   r#   c                        \ rS rSrSrSrSrSrg)r$   iT  	   REPLICA_NOT_AVAILABLEzLIf replica is expected on a broker, but is not (this can be safely ignored).rZ   Nr   rZ   rY   rW   r$   r$   T  s    E%G	 rY   r$   c                        \ rS rSrSrSrSrSrg)r%   i]  
   MESSAGE_SIZE_TOO_LARGEzThe server has a configurable maximum message size to avoid unbounded memory allocation. This error is thrown if the client attempt to produce a message larger than this maximum.rZ   Nr   rZ   rY   rW   r%   r%   ]  s    E&G	 rY   r%   c                        \ rS rSrSrSrSrSrg)r&   ih     STALE_CONTROLLER_EPOCHz7Internal error code for broker-to-broker communication.rZ   Nr   rZ   rY   rW   r&   r&   h  s    E&GKKrY   r&   c                        \ rS rSrSrSrSrSrg)r'   in     OFFSET_METADATA_TOO_LARGEzKIf you specify a string larger than configured maximum for offset metadata.rZ   Nr   rZ   rY   rW   r'   r'   n  s    E)GU rY   r'   c                       \ rS rSrSrSrSrg)r(   ix     STALE_LEADER_EPOCH_CODErZ   N)rR   r[   r\   r]   r   r   ra   rZ   rY   rW   r(   r(   x  s    E'GrY   r(   c                   $    \ rS rSrSrSrSrSrSrg)r)   i}     COORDINATOR_LOAD_IN_PROGRESSa  The broker returns this error code for an offset fetch request if it is still loading offsets (after a leader change for that offsets topic partition), or in response to group membership requests (such as heartbeats) when group metadata is being loaded by the coordinator.TrZ   Nr   rZ   rY   rW   r)   r)   }  s    E,G	>  IrY   r)   c                   $    \ rS rSrSrSrSrSrSrg)r*   i     COORDINATOR_NOT_AVAILABLEzThe broker returns this error code for group coordinator requests, offset commits, and most group management requests if the offsets topic has not yet been created, or if the group coordinator is not active.TrZ   Nr   rZ   rY   rW   r*   r*     s    E)G	3  IrY   r*   c                   $    \ rS rSrSrSrSrSrSrg)r+   i     NOT_COORDINATORzThe broker returns this error code if it receives an offset fetch or commit request for a group that it is not a coordinator for.TrZ   Nr   rZ   rY   rW   r+   r+     s    EG	 
 IrY   r+   c                        \ rS rSrSrSrSrSrg)r,   i     INVALID_TOPICzFor a request which attempts to access an invalid topic (e.g. one which has an illegal name), or if an attempt is made to write to an internal topic (such as the consumer offsets topic).rZ   Nr   rZ   rY   rW   r,   r,     s    EG	$ rY   r,   c                        \ rS rSrSrSrSrSrg)r-   i     RECORD_LIST_TOO_LARGEzTIf a message batch in a produce request exceeds the maximum configured segment size.rZ   Nr   rZ   rY   rW   r-   r-     s    E%G	$ rY   r-   c                   $    \ rS rSrSrSrSrSrSrg)r.   i     NOT_ENOUGH_REPLICASzReturned from a produce request when the number of in-sync replicas is lower than the configured minimum and requiredAcks is -1.TrZ   Nr   rZ   rY   rW   r.   r.     s    E#G	 
 IrY   r.   c                   $    \ rS rSrSrSrSrSrSrg)r/   i      NOT_ENOUGH_REPLICAS_AFTER_APPENDzwReturned from a produce request when the message was written to the log, but with fewer in-sync replicas than required.TrZ   Nr   rZ   rY   rW   r/   r/     s    E0G	 
 IrY   r/   c                        \ rS rSrSrSrSrSrg)r0   i     INVALID_REQUIRED_ACKSzkReturned from a produce request if the requested requiredAcks is invalid (anything other than -1, 1, or 0).rZ   Nr   rZ   rY   rW   r0   r0     s    E%G	F rY   r0   c                        \ rS rSrSrSrSrSrg)r1   i     ILLEGAL_GENERATIONzReturned from group membership requests (such as heartbeats) when the generation id provided in the request is not the current generation.rZ   Nr   rZ   rY   rW   r1   r1     s    E"G	 rY   r1   c                        \ rS rSrSrSrSrSrg)r2   i     INCONSISTENT_GROUP_PROTOCOLzReturned in join group when the member provides a protocol type or set of protocols which is not compatible with the current group.rZ   Nr   rZ   rY   rW   r2   r2     s    E+G	 rY   r2   c                        \ rS rSrSrSrSrSrg)r3   i     INVALID_GROUP_IDz9Returned in join group when the groupId is empty or null.rZ   Nr   rZ   rY   rW   r3   r3     s    E GMKrY   r3   c                        \ rS rSrSrSrSrSrg)r4   i     UNKNOWN_MEMBER_IDzzReturned from group requests (offset commits/fetches, heartbeats, etc) when the memberId is not in the current generation.rZ   Nr   rZ   rY   rW   r4   r4     s    E!G	 rY   r4   c                        \ rS rSrSrSrSrSrg)r5   i     INVALID_SESSION_TIMEOUTzeReturn in join group when the requested session timeout is outside of the allowed range on the brokerrZ   Nr   rZ   rY   rW   r5   r5     s    E'G	6 rY   r5   c                        \ rS rSrSrSrSrSrg)r6   i
     REBALANCE_IN_PROGRESSzReturned in heartbeat requests when the coordinator has begun rebalancing the group. This indicates to the client that it should rejoin the group.rZ   Nr   rZ   rY   rW   r6   r6   
  s    E%G	, rY   r6   c                        \ rS rSrSrSrSrSrg)r7   i     INVALID_COMMIT_OFFSET_SIZEzUThis error indicates that an offset commit was rejected because of oversize metadata.rZ   Nr   rZ   rY   rW   r7   r7     s    E*G	) rY   r7   c                        \ rS rSrSrSrSrSrg)r8   i     TOPIC_AUTHORIZATION_FAILEDzWReturned by the broker when the client is not authorized to access the requested topic.rZ   Nr   rZ   rY   rW   r8   r8     s    E*G	' rY   r8   c                        \ rS rSrSrSrSrSrg)r9   i&     GROUP_AUTHORIZATION_FAILEDzXReturned by the broker when the client is not authorized to access a particular groupId.rZ   Nr   rZ   rY   rW   r9   r9   &  s    E*G	( rY   r9   c                        \ rS rSrSrSrSrSrg)r:   i/     CLUSTER_AUTHORIZATION_FAILEDzfReturned by the broker when the client is not authorized to use an inter-broker or administrative API.rZ   Nr   rZ   rY   rW   r:   r:   /  s    E,G	6 rY   r:   c                        \ rS rSrSrSrSrSrg)r;   i8      INVALID_TIMESTAMPz8The timestamp of the message is out of acceptable range.rZ   Nr   rZ   rY   rW   r;   r;   8  s    E!GLKrY   r;   c                        \ rS rSrSrSrSrSrg)r<   i>  !   UNSUPPORTED_SASL_MECHANISMz9The broker does not support the requested SASL mechanism.rZ   Nr   rZ   rY   rW   r<   r<   >  s    E*GMKrY   r<   c                        \ rS rSrSrSrSrSrg)r=   iD  "   ILLEGAL_SASL_STATEz2Request is not valid given the current SASL state.rZ   Nr   rZ   rY   rW   r=   r=   D  s    E"GFKrY   r=   c                        \ rS rSrSrSrSrSrg)r>   iJ  #   UNSUPPORTED_VERSIONz$The version of API is not supported.rZ   Nr   rZ   rY   rW   r>   r>   J  s    E#G8KrY   r>   c                        \ rS rSrSrSrSrSrg)r?   iP  $   TOPIC_ALREADY_EXISTSz$Topic with this name already exists.rZ   Nr   rZ   rY   rW   r?   r?   P  s    E$G8KrY   r?   c                        \ rS rSrSrSrSrSrg)r@   iV  %   INVALID_PARTITIONSz Number of partitions is invalid.rZ   Nr   rZ   rY   rW   r@   r@   V  s    E"G4KrY   r@   c                        \ rS rSrSrSrSrSrg)rA   i\  &   INVALID_REPLICATION_FACTORzReplication-factor is invalid.rZ   Nr   rZ   rY   rW   rA   rA   \  s    E*G2KrY   rA   c                        \ rS rSrSrSrSrSrg)rB   ib  '   INVALID_REPLICATION_ASSIGNMENTz"Replication assignment is invalid.rZ   Nr   rZ   rY   rW   rB   rB   b  s    E.G6KrY   rB   c                        \ rS rSrSrSrSrSrg)rC   ih  (   INVALID_CONFIGzConfiguration is invalid.rZ   Nr   rZ   rY   rW   rC   rC   h  s    EG-KrY   rC   c                   $    \ rS rSrSrSrSrSrSrg)rD   in  )   NOT_CONTROLLERz4This is not the correct controller for this cluster.TrZ   Nr   rZ   rY   rW   rD   rD   n  s    EGHKIrY   rD   c                        \ rS rSrSrSrSrSrg)rE   iu  *   INVALID_REQUESTzThis most likely occurs because of a request being malformed by the client library or the message was sent to an incompatible broker. See the broker logs for more details.rZ   Nr   rZ   rY   rW   rE   rE   u  s    EG	 rY   rE   c                        \ rS rSrSrSrSrSrg)rF   i  +   UNSUPPORTED_FOR_MESSAGE_FORMATzGThe message format version on the broker does not support this request.rZ   Nr   rZ   rY   rW   rF   rF     s    E.GQ rY   rF   c                        \ rS rSrSrSrSrSrg)rG   i  ,   POLICY_VIOLATIONz8Request parameters do not satisfy the configured policy.rZ   Nr   rZ   rY   rW   rG   rG     s    E GLKrY   rG   c                        \ rS rSrSrSrSrSrg)OutOfOrderSequenceNumberi  -   OUT_OF_ORDER_SEQUENCE_NUMBERz3The broker received an out of order sequence numberrZ   Nr   rZ   rY   rW   rI  rI    s    E,GGKrY   rI  c                        \ rS rSrSrSrSrSrg)DuplicateSequenceNumberi  .   DUPLICATE_SEQUENCE_NUMBERz/The broker received a duplicate sequence numberrZ   Nr   rZ   rY   rW   rM  rM    s    E)GCKrY   rM  c                        \ rS rSrSrSrSrSrg)InvalidProducerEpochi  /   INVALID_PRODUCER_EPOCHzProducer attempted an operation with an old epoch. Either there is a newer producer with the same transactionalId, or the producer's transaction has been expired by the broker.rZ   Nr   rZ   rY   rW   rQ  rQ    s    E&G	A rY   rQ  c                        \ rS rSrSrSrSrSrg)InvalidTxnStatei  0   INVALID_TXN_STATEzDThe producer attempted a transactional operation in an invalid staterZ   Nr   rZ   rY   rW   rU  rU    s    E!GXKrY   rU  c                        \ rS rSrSrSrSrSrg)InvalidProducerIdMappingi  1   INVALID_PRODUCER_ID_MAPPINGzcThe producer attempted to use a producer id which is not currently assigned to its transactional idrZ   Nr   rZ   rY   rW   rY  rY    s    E+G	+ rY   rY  c                        \ rS rSrSrSrSrSrg)InvalidTransactionTimeouti  2   INVALID_TRANSACTION_TIMEOUTz}The transaction timeout is larger than the maximum value allowed by the broker (as configured by transaction.max.timeout.ms).rZ   Nr   rZ   rY   rW   r]  r]    s    E+G	E rY   r]  c                        \ rS rSrSrSrSrSrg)ConcurrentTransactionsi  3   CONCURRENT_TRANSACTIONSzuThe producer attempted to update a transaction while another concurrent operation on the same transaction was ongoingrZ   Nr   rZ   rY   rW   ra  ra    s    E'G	C rY   ra  c                        \ rS rSrSrSrSrSrg)TransactionCoordinatorFencedi  4   TRANSACTION_COORDINATOR_FENCEDz}Indicates that the transaction coordinator sending a WriteTxnMarker is no longer the current coordinator for a given producerrZ   Nr   rZ   rY   rW   re  re    s    E.G	E rY   re  c                        \ rS rSrSrSrSrSrg)"TransactionalIdAuthorizationFailedi  5   %TRANSACTIONAL_ID_AUTHORIZATION_FAILEDz%Transactional Id authorization failedrZ   Nr   rZ   rY   rW   ri  ri    s    E5G9KrY   ri  c                        \ rS rSrSrSrSrSrg)SecurityDisabledi  6   SECURITY_DISABLEDzSecurity features are disabledrZ   Nr   rZ   rY   rW   rm  rm    s    E!G2KrY   rm  c                        \ rS rSrSrSrSrSrg)OperationNotAttemptedi  7   OPERATION_NOT_ATTEMPTEDzThe broker did not attempt to execute this operation. This may happen for batched RPCs where some operations in the batch failed, causing the broker to respond without trying the rest.rZ   Nr   rZ   rY   rW   rq  rq    s    E'G	9 rY   rq  c                        \ rS rSrSrSrSrSrg)KafkaStorageErrori  8   KAFKA_STORAGE_ERRORCThe user-specified log directory is not found in the broker config.rZ   Nr   rZ   rY   rW   ru  ru    s    E#GWKrY   ru  c                        \ rS rSrSrSrSrSrg)LogDirNotFoundi  9   LOG_DIR_NOT_FOUNDrx  rZ   Nr   rZ   rY   rW   rz  rz    s    E!GWKrY   rz  c                        \ rS rSrSrSrSrSrg)SaslAuthenticationFailedi  :   SASL_AUTHENTICATION_FAILEDzSASL Authentication failed.rZ   Nr   rZ   rY   rW   r~  r~    s    E*G/KrY   r~  c                        \ rS rSrSrSrSrSrg)UnknownProducerIdi  ;   UNKNOWN_PRODUCER_IDa  This exception is raised by the broker if it could not locate the producer metadata associated with the producerId in question. This could happen if, for instance, the producer's records were deleted because their retention time had elapsed. Once the last records of the producerId are removed, the producer's metadata is removed from the broker, and future appends by the producer will return this exception.rZ   Nr   rZ   rY   rW   r  r    s    E#G	 rY   r  c                        \ rS rSrSrSrSrSrg)ReassignmentInProgressi  <   REASSIGNMENT_IN_PROGRESSz'A partition reassignment is in progressrZ   Nr   rZ   rY   rW   r  r    s    E(G;KrY   r  c                        \ rS rSrSrSrSrSrg)DelegationTokenAuthDisabledi
  =   DELEGATION_TOKEN_AUTH_DISABLEDz'Delegation Token feature is not enabledrZ   Nr   rZ   rY   rW   r  r  
  s    E.G;KrY   r  c                        \ rS rSrSrSrSrSrg)DelegationTokenNotFoundi  >   DELEGATION_TOKEN_NOT_FOUNDz(Delegation Token is not found on server.rZ   Nr   rZ   rY   rW   r  r    s    E*G<KrY   r  c                        \ rS rSrSrSrSrSrg)DelegationTokenOwnerMismatchi  ?   DELEGATION_TOKEN_OWNER_MISMATCHz/Specified Principal is not valid Owner/Renewer.rZ   Nr   rZ   rY   rW   r  r    s    E/GCKrY   r  c                        \ rS rSrSrSrSrSrg) DelegationTokenRequestNotAllowedi  @   $DELEGATION_TOKEN_REQUEST_NOT_ALLOWEDzyDelegation Token requests are not allowed on PLAINTEXT/1-way SSL channels and on delegation token authenticated channels.rZ   Nr   rZ   rY   rW   r  r    s    E4G	C rY   r  c                        \ rS rSrSrSrSrSrg)"DelegationTokenAuthorizationFailedi%  A   %DELEGATION_TOKEN_AUTHORIZATION_FAILEDz&Delegation Token authorization failed.rZ   Nr   rZ   rY   rW   r  r  %  s    E5G:KrY   r  c                        \ rS rSrSrSrSrSrg)DelegationTokenExpiredi+  B   DELEGATION_TOKEN_EXPIREDzDelegation Token is expired.rZ   Nr   rZ   rY   rW   r  r  +  s    E(G0KrY   r  c                        \ rS rSrSrSrSrSrg)InvalidPrincipalTypei1  C   INVALID_PRINCIPAL_TYPEz'Supplied principalType is not supportedrZ   Nr   rZ   rY   rW   r  r  1  s    E&G;KrY   r  c                        \ rS rSrSrSrSrSrg)NonEmptyGroupi7  D   NON_EMPTY_GROUPzThe group is not emptyrZ   Nr   rZ   rY   rW   r  r  7  s    EG*KrY   r  c                        \ rS rSrSrSrSrSrg)GroupIdNotFoundi=  E   GROUP_ID_NOT_FOUNDzThe group id does not existrZ   Nr   rZ   rY   rW   r  r  =  s    E"G/KrY   r  c                        \ rS rSrSrSrSrSrg)FetchSessionIdNotFoundiC  F   FETCH_SESSION_ID_NOT_FOUNDz"The fetch session ID was not foundrZ   Nr   rZ   rY   rW   r  r  C  s    E*G6KrY   r  c                        \ rS rSrSrSrSrSrg)InvalidFetchSessionEpochiI  G   INVALID_FETCH_SESSION_EPOCHz"The fetch session epoch is invalidrZ   Nr   rZ   rY   rW   r  r  I  s    E+G6KrY   r  c                        \ rS rSrSrSrSrSrg)ListenerNotFoundiO  H   LISTENER_NOT_FOUNDzkThere is no listener on the leader broker that matches the listener on which metadata request was processedrZ   Nr   rZ   rY   rW   r  r  O  s    E"G	< rY   r  c                        \ rS rSrSrSrSrSrg)MemberIdRequirediX  O   MEMBER_ID_REQUIREDzGConsumer needs to have a valid member id before actually entering grouprZ   Nr   rZ   rY   rW   r  r  X  s    E"GQ rY   r  _T)boundclsrN   c              #   l   #    U R                  5        H  nUv   [        U5       S h  vN   M     g  N	7fr   )__subclasses___iter_subclasses)r  subclasss     rW   r  r  c  s.     &&(#H--- )-s   &42
4
error_codec                 6    [         R                  U [        5      $ r   )kafka_errorsgetr   )r  s    rW   for_coder  l  s    J55rY   N){collections.abcr   typingr   r   __all__RuntimeErrorr
   r   r   r   r   r   r   r   r   r   r}   r   r   r   r   r   rH   rI   rJ   rK   r   r   	Exceptionr   r   r   r   r	   r   r   r   r   r   r   InvalidMessageErrorr   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   CoordinatorLoadInProgressErrorr*   CoordinatorNotAvailableErrorr+   NotCoordinatorErrorr,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rI  rM  rQ  rU  rY  r]  ra  re  ri  rm  rq  ru  rz  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  typer  r  r   r  r   r  )xs   0rW   <module>r     s   $ JZA A	
 		: 	 

  + 
 j J 
j 	
 		
 	

 
$	z 	
 	J 		
 	: 
	J 		j 		* 	9 y 	
 		* 		Z 	Z ";* ;)! )0& 0/ 0  - #6 52 5	1 	
!4 
. 1 2 2 L 3 L"5 ( 3 (

2 
 ": 	(; 	  A "5  2 + 1 0 (; 2 0 %8 N- N. !4 2 #6 $7 $7 &9 M/ MN$7 NG/ G91 991 950 53$7 37(; 7. 3 ., - ': M. MH2 HD1 D. Y) Y2  3 0 #6 :)< :3* 3/ X+ XX( X02 0+ <0 <<"5 <=1 =D#6 D': ;)< ;10 1<. <+' +0) 070 772 7* *  T." ." . %55H$IJ$Iq
$IJ6 6&9!: 6 Ks   0S