pub struct LocalNullPointerError { /* private fields */ }Expand description
Null pointer error — a mandatory argument was null.
Java’s java.lang.NullPointerException; like
LocalIllegalArgumentError,
outside the KafkaException hierarchy. Rust has no null, so only the C
boundary raises it, for a NULL mandatory pointer, with Java’s message
where Java has one (Objects.requireNonNull(x, message)).
Implementations§
Source§impl LocalNullPointerError
impl LocalNullPointerError
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 LocalNullPointerError
impl Clone for LocalNullPointerError
Source§impl Debug for LocalNullPointerError
impl Debug for LocalNullPointerError
Source§impl Display for LocalNullPointerError
impl Display for LocalNullPointerError
Source§impl Error for LocalNullPointerError
impl Error for LocalNullPointerError
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 LocalNullPointerError
impl RefUnwindSafe for LocalNullPointerError
impl Send for LocalNullPointerError
impl Sync for LocalNullPointerError
impl Unpin for LocalNullPointerError
impl UnsafeUnpin for LocalNullPointerError
impl UnwindSafe for LocalNullPointerError
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