[]Struct jni_android_sys::java::lang::Exception

#[repr(transparent)]
pub struct Exception(_);

public class Exception

Required feature: java-lang-Exception

Methods

impl Exception

pub fn new<'env>(__jni_env: &'env Env) -> Result<Local<'env, Exception>>[src]

pub fn new_string<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, Exception>>
[src]

Required features: "java-lang-String"

pub fn new_string_throwable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Throwable>>
) -> Result<Local<'env, Exception>>
[src]

Required features: "java-lang-String", "java-lang-Throwable"

pub fn new_throwable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Throwable>>
) -> Result<Local<'env, Exception>>
[src]

Required features: "java-lang-Throwable"

Methods from Deref<Target = Throwable>

pub fn get_message<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

getMessage

Required features: "java-lang-String"

pub fn get_localized_message<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>>
[src]

getLocalizedMessage

Required features: "java-lang-String"

pub fn get_cause<'env>(&'env self) -> Result<Option<Local<'env, Throwable>>>[src]

getCause

Required features: "java-lang-Throwable"

pub fn init_cause<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Throwable>>
) -> Result<Option<Local<'env, Throwable>>>
[src]

initCause

Required features: "java-lang-Throwable"

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

Required features: "java-lang-String"

pub fn print_stack_trace<'env>(&'env self) -> Result<()>[src]

pub fn print_stack_trace_print_stream<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PrintStream>>
) -> Result<()>
[src]

printStackTrace

Required features: "java-io-PrintStream"

pub fn print_stack_trace_print_writer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PrintWriter>>
) -> Result<()>
[src]

printStackTrace

Required features: "java-io-PrintWriter"

pub fn fill_in_stack_trace<'env>(
    &'env self
) -> Result<Option<Local<'env, Throwable>>>
[src]

fillInStackTrace

Required features: "java-lang-Throwable"

pub fn add_suppressed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Throwable>>
) -> Result<()>
[src]

addSuppressed

Required features: "java-lang-Throwable"

Trait Implementations

impl Deref for Exception

type Target = Throwable

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Exception

impl AsJValue for Exception

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]