pub struct LocalIllegalStateError { /* private fields */ }Expand description
Illegal state error — a method was called in an invalid state.
Corresponds to Java’s java.lang.IllegalStateException; like
LocalIllegalArgumentError,
outside the KafkaException hierarchy.
Implementations§
Source§impl LocalIllegalStateError
impl LocalIllegalStateError
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 Clone for LocalIllegalStateError
impl Clone for LocalIllegalStateError
Source§fn clone(&self) -> LocalIllegalStateError
fn clone(&self) -> LocalIllegalStateError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalIllegalStateError
impl Debug for LocalIllegalStateError
Source§impl Display for LocalIllegalStateError
impl Display for LocalIllegalStateError
Source§impl Error for LocalIllegalStateError
impl Error for LocalIllegalStateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LocalIllegalStateError
impl RefUnwindSafe for LocalIllegalStateError
impl Send for LocalIllegalStateError
impl Sync for LocalIllegalStateError
impl Unpin for LocalIllegalStateError
impl UnsafeUnpin for LocalIllegalStateError
impl UnwindSafe for LocalIllegalStateError
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