#[repr(i16)]pub enum ErrorCode {
Show 83 variants
UnknownServerError = -1,
None = 0,
OffsetOutOfRange = 1,
CorruptMessage = 2,
UnknownTopicOrPartition = 3,
InvalidFetchSize = 4,
LeaderNotAvailable = 5,
NotLeaderForPartition = 6,
RequestTimedOut = 7,
BrokerNotAvailable = 8,
ReplicaNotAvailable = 9,
MessageTooLarge = 10,
StaleControllerEpoch = 11,
OffsetMetadataTooLarge = 12,
NetworkException = 13,
CoordinatorLoadInProgress = 14,
CoordinatorNotAvailable = 15,
NotCoordinator = 16,
InvalidTopicException = 17,
RecordListTooLarge = 18,
NotEnoughReplicas = 19,
NotEnougReplicasAfterAppend = 20,
InvalidRequiredAcks = 21,
IllegalGeneration = 22,
InconsistentGroupProtocol = 23,
InvalidGroupId = 24,
UnknownMemberId = 25,
InvalidSessionTimeout = 26,
RebalanceInProgress = 27,
InvalidCommitOffsetSize = 28,
TopicAuthorizationFailed = 29,
GroupAuthorizationFailed = 30,
ClusterAuthorizationFailed = 31,
InvalidTimestamp = 32,
UnsupportedSaslMechanism = 33,
IllegalSaslState = 34,
UnsupportedVersion = 35,
TopicAlreadyExists = 36,
InvalidPartitions = 37,
InvalidReplicationFactor = 38,
InvalidReplicaAssignment = 39,
InvalidConfig = 40,
NotController = 41,
InvalidRequest = 42,
UnsupportedForMessageFormat = 43,
PolicyViolation = 44,
OutOfOrderSequenceNumber = 45,
DuplicateSequenceNumber = 46,
InvalidProducerEpoch = 47,
InvalidTxnState = 48,
InvalidProducerIdMapping = 49,
InvalidTransactionTimeout = 50,
ConcurrentTransactions = 51,
TransactionCoordinatorFenced = 52,
TransactionalIdAuthorizationFailed = 53,
SecurityDisabled = 54,
OperationNotAttempted = 55,
KafkaStorageError = 56,
LogDirNotFound = 57,
SaslAuthenticationFailed = 58,
UnknownProducerId = 59,
ReassignmentInProgress = 60,
DelegationTokenAuthDisabled = 61,
DelegationTokenNotFound = 62,
DelegationTokenOwnerMismatch = 63,
DelegationTokenRequestNotAllowed = 64,
DelegationTokenAuthorizationFailed = 65,
DelegationTokenExpired = 66,
InvalidPrincipleType = 67,
NonEmptyGroup = 68,
GroupIdNotFound = 69,
FetchSessionIdNotFound = 70,
InvalidFetchSessionEpoch = 71,
ListenerNotFound = 72,
TopicDeletionDisabled = 73,
FencedLeaderEpoch = 74,
UnknownLeaderEpoch = 75,
UnsupportedCompressionType = 76,
StaleBrokerEpoch = 77,
OffsetNotAvailable = 78,
MemberIdRequired = 79,
PreferredLeaderNotAvailable = 80,
GroupMaxSizeReached = 81,
}
Expand description
kafka error https://kafka.apache.org/protocol#protocol_types
Variants§
UnknownServerError = -1
None = 0
OffsetOutOfRange = 1
CorruptMessage = 2
UnknownTopicOrPartition = 3
InvalidFetchSize = 4
LeaderNotAvailable = 5
NotLeaderForPartition = 6
RequestTimedOut = 7
BrokerNotAvailable = 8
ReplicaNotAvailable = 9
MessageTooLarge = 10
StaleControllerEpoch = 11
OffsetMetadataTooLarge = 12
NetworkException = 13
CoordinatorLoadInProgress = 14
CoordinatorNotAvailable = 15
NotCoordinator = 16
InvalidTopicException = 17
RecordListTooLarge = 18
NotEnoughReplicas = 19
NotEnougReplicasAfterAppend = 20
InvalidRequiredAcks = 21
IllegalGeneration = 22
InconsistentGroupProtocol = 23
InvalidGroupId = 24
UnknownMemberId = 25
InvalidSessionTimeout = 26
RebalanceInProgress = 27
InvalidCommitOffsetSize = 28
TopicAuthorizationFailed = 29
GroupAuthorizationFailed = 30
ClusterAuthorizationFailed = 31
InvalidTimestamp = 32
UnsupportedSaslMechanism = 33
IllegalSaslState = 34
UnsupportedVersion = 35
TopicAlreadyExists = 36
InvalidPartitions = 37
InvalidReplicationFactor = 38
InvalidReplicaAssignment = 39
InvalidConfig = 40
NotController = 41
InvalidRequest = 42
UnsupportedForMessageFormat = 43
PolicyViolation = 44
OutOfOrderSequenceNumber = 45
DuplicateSequenceNumber = 46
InvalidProducerEpoch = 47
InvalidTxnState = 48
InvalidProducerIdMapping = 49
InvalidTransactionTimeout = 50
ConcurrentTransactions = 51
TransactionCoordinatorFenced = 52
TransactionalIdAuthorizationFailed = 53
SecurityDisabled = 54
OperationNotAttempted = 55
KafkaStorageError = 56
LogDirNotFound = 57
SaslAuthenticationFailed = 58
UnknownProducerId = 59
ReassignmentInProgress = 60
DelegationTokenAuthDisabled = 61
DelegationTokenNotFound = 62
DelegationTokenOwnerMismatch = 63
DelegationTokenRequestNotAllowed = 64
DelegationTokenAuthorizationFailed = 65
DelegationTokenExpired = 66
InvalidPrincipleType = 67
NonEmptyGroup = 68
GroupIdNotFound = 69
FetchSessionIdNotFound = 70
InvalidFetchSessionEpoch = 71
ListenerNotFound = 72
TopicDeletionDisabled = 73
FencedLeaderEpoch = 74
UnknownLeaderEpoch = 75
UnsupportedCompressionType = 76
StaleBrokerEpoch = 77
OffsetNotAvailable = 78
MemberIdRequired = 79
PreferredLeaderNotAvailable = 80
GroupMaxSizeReached = 81
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more