pub struct ThrottlingQuotaExceededError { /* private fields */ }Expand description
The request was throttled due to a quota violation.
Corresponds to Java’s ThrottlingQuotaExceededException, error code
Errors::ThrottlingQuotaExceeded.
Java extends chain:
ThrottlingQuotaExceededException -> RetriableException ->
ApiException -> KafkaException
Hand-written rather than declared with kafka_error_type! because it adds
a field: Java’s constructor is
ThrottlingQuotaExceededException(int throttleTimeMs, String message).
Implementations§
Source§impl ThrottlingQuotaExceededError
impl ThrottlingQuotaExceededError
Sourcepub fn new(throttle_time_ms: i32, message: impl Into<String>) -> Self
pub fn new(throttle_time_ms: i32, message: impl Into<String>) -> Self
Create a new throttling quota exceeded error.
Sourcepub fn with_default_message(throttle_time_ms: i32) -> Self
pub fn with_default_message(throttle_time_ms: i32) -> Self
Create the error with the default message for its error code.
Sourcepub fn throttle_time_ms(&self) -> i32
pub fn throttle_time_ms(&self) -> i32
The amount of time to wait before retrying, in milliseconds.
Mirrors Java’s ThrottlingQuotaExceededException.throttleTimeMs().
Source§impl ThrottlingQuotaExceededError
impl ThrottlingQuotaExceededError
Sourcepub fn source(&self) -> Option<&Error>
pub fn source(&self) -> Option<&Error>
Always None: ThrottlingQuotaExceededException exposes no Throwable cause constructor, so its
cause is null in Java too. Present as an inherent method so it shadows
both ErrorSource::source and std::error::Error::source, keeping
x.source() unambiguous and typed.
Trait Implementations§
Source§impl Clone for ThrottlingQuotaExceededError
impl Clone for ThrottlingQuotaExceededError
Source§fn clone(&self) -> ThrottlingQuotaExceededError
fn clone(&self) -> ThrottlingQuotaExceededError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more