pub struct LastException<'invoker>(_);
Expand description

An object that is able to retrieve detailed method call error information.

Certain errors, when returned from a method call (and only from a method call!), are accompanied by additional detailed error information which is only available until the next method call. A value of this type uses the 'invoker lifetime parameter to prevent additional method calls from being made until the caller has finished examining the detailed error information.

Implementations

Returns the length of the human-readable message for the error.

Panics

This function panics if the underlying syscall fails, because the only reasons it could fail should be impossible due to the type system.

Returns the human-readable message for the error.

The message is written into buffer, and a string slice over the written text is returned.

Errors
  • BufferTooShort is returned if buffer is not long enough to hold the error message.
Panics

This function panics if the underlying syscall fails for any reason other than BufferTooShort, because the only other reasons it could fail should be impossible due to the type system.

Checks whether the Java exception underlying the error is of a certain type.

The class parameter must be the fully qualified name of a Java class (e.g. java.io.IOException). This function returns true if the exception that caused the error is class or a subclass thereof, or false if not.

Panics

This function panics if the underlying syscall fails, because the only reasons it could fail should be impossible due to the type system.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.