[]Struct jni_android_sys::java::lang::Error

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

public class Error

Required feature: "java-lang-Error"

Methods

impl Error

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

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

Error

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, Error>, Local<'env, Throwable>>
[src]

Error

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, Error>, Local<'env, Throwable>>
[src]

Error

Required features: "java-lang-Throwable"

Methods from Deref<Target = Throwable>

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

getMessage

Required features: "java-lang-String"

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

getLocalizedMessage

Required features: "java-lang-String"

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

getCause

Required features: "java-lang-Throwable"

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

initCause

Required features: "java-lang-Throwable"

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

toString

Required features: "java-lang-String"

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

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

printStackTrace

Required features: "java-io-PrintStream"

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

printStackTrace

Required features: "java-io-PrintWriter"

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

fillInStackTrace

Required features: "java-lang-Throwable"

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

getStackTrace

Required features: "java-lang-StackTraceElement"

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

setStackTrace

Required features: "java-lang-StackTraceElement"

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

addSuppressed

Required features: "java-lang-Throwable"

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

getSuppressed

Required features: "java-lang-Throwable"

Trait Implementations

impl AsJValue for Error

impl AsValidJObjectAndEnv for Error

impl Deref for Error

type Target = Throwable

The resulting type after dereferencing.

impl JniType for Error

Auto Trait Implementations

impl RefUnwindSafe for Error

impl !Send for Error

impl !Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

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

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

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

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.