pub struct LocalUnsupportedOperationError { /* private fields */ }Expand description
Unsupported operation error — the requested operation is not supported.
Java’s java.lang.UnsupportedOperationException; like
LocalIllegalArgumentError,
outside the KafkaException hierarchy. Not to be confused with
UnsupportedVersionError, Java’s wire-level UnsupportedVersionException
for a broker that lacks an API version.
Implementations§
Source§impl LocalUnsupportedOperationError
impl LocalUnsupportedOperationError
Sourcepub fn new(message: impl Into<String>) -> Self
pub fn new(message: impl Into<String>) -> Self
Create the error with the given message and no cause,
mirroring the (String message) constructor.
Keeps the plain name under CLAUDE.md §2, for consistency with
kafka_error_type! — see the note on this macro about the
constructors these classes deliberately do not model.
(Deliberately not an intra-doc link: this doc comment expands
into each declaring module, where that macro is not in scope.)
Trait Implementations§
Source§impl Error for LocalUnsupportedOperationError
impl Error for LocalUnsupportedOperationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()