pub struct Error { /* private fields */ }Expand description
These fields can represent errors of any kind.
Use them for errors that happen while fetching events or in cases where the event itself contains an error.
Implementations§
Source§impl Error
impl Error
Sourcepub fn get_message(&self) -> Option<&String>
pub fn get_message(&self) -> Option<&String>
Error message.
Sourcepub fn set_message(&mut self, message_arg: String)
pub fn set_message(&mut self, message_arg: String)
Error message.
Sourcepub fn get_type(&self) -> Option<&String>
pub fn get_type(&self) -> Option<&String>
The type of the error, for example the class name of the exception.
Sourcepub fn set_type(&mut self, type_arg: String)
pub fn set_type(&mut self, type_arg: String)
The type of the error, for example the class name of the exception.
§Example
java.lang.NullPointerException
Sourcepub fn get_stack_trace(&self) -> Option<&String>
pub fn get_stack_trace(&self) -> Option<&String>
The stack trace of this error in plain text.
Sourcepub fn set_stack_trace(&mut self, stack_trace_arg: String)
pub fn set_stack_trace(&mut self, stack_trace_arg: String)
The stack trace of this error in plain text.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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