pub struct JavaException { /* private fields */ }Expand description
A copy of a Java exception thrown by the SDK.
Implementations§
Source§impl JavaException
impl JavaException
Sourcepub fn get_class_name(&self) -> &str
pub fn get_class_name(&self) -> &str
The fully qualified Java class name, e.g. java.lang.IllegalArgumentException; empty if unknown.
Sourcepub fn get_message(&self) -> &str
pub fn get_message(&self) -> &str
The exception message; empty if it has none.
Sourcepub fn get_stack_trace(&self) -> &str
pub fn get_stack_trace(&self) -> &str
The Java stack trace as printStackTrace prints it, causes included; empty if unknown.
Sourcepub fn get_cause(&self) -> Option<&JavaException>
pub fn get_cause(&self) -> Option<&JavaException>
The cause of the exception, if any.
Trait Implementations§
Source§impl Clone for JavaException
impl Clone for JavaException
Source§impl Debug for JavaException
impl Debug for JavaException
Source§impl Display for JavaException
impl Display for JavaException
Source§impl Error for JavaException
impl Error for JavaException
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 Forget for JavaException
impl Freeze for JavaException
impl Move for JavaException
impl RefUnwindSafe for JavaException
impl Send for JavaException
impl Sync for JavaException
impl Unpin for JavaException
impl UnsafeUnpin for JavaException
impl UnwindSafe for JavaException
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