pub struct LocalIllegalArgumentError { /* private fields */ }Expand description
Illegal argument error — an invalid argument was provided to a method.
Corresponds to Java’s java.lang.IllegalArgumentException, a sibling of
KafkaException rather than a subclass, so no predicate holds for it.
Implementations§
Source§impl LocalIllegalArgumentError
impl LocalIllegalArgumentError
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 LocalIllegalArgumentError
impl Clone for LocalIllegalArgumentError
Source§fn clone(&self) -> LocalIllegalArgumentError
fn clone(&self) -> LocalIllegalArgumentError
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 LocalIllegalArgumentError
impl Debug for LocalIllegalArgumentError
Source§impl Display for LocalIllegalArgumentError
impl Display for LocalIllegalArgumentError
Source§impl Error for LocalIllegalArgumentError
impl Error for LocalIllegalArgumentError
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 LocalIllegalArgumentError
impl RefUnwindSafe for LocalIllegalArgumentError
impl Send for LocalIllegalArgumentError
impl Sync for LocalIllegalArgumentError
impl Unpin for LocalIllegalArgumentError
impl UnsafeUnpin for LocalIllegalArgumentError
impl UnwindSafe for LocalIllegalArgumentError
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