#[non_exhaustive]pub enum JavaExceptionClass {
RuntimeException,
IllegalArgumentException,
IllegalStateException,
UnsupportedOperationException,
IOException,
CancellationException,
TimeoutException,
}Expand description
A class of the Java exceptions that Promise::complete_exceptionally
and Promise::failed create: the fixed set that the SDK creates without reflection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RuntimeException
java.lang.RuntimeException.
IllegalArgumentException
java.lang.IllegalArgumentException.
IllegalStateException
java.lang.IllegalStateException.
UnsupportedOperationException
java.lang.UnsupportedOperationException.
IOException
java.io.IOException.
CancellationException
java.util.concurrent.CancellationException. It fails a promise but does not cancel it:
Promise::is_cancelled stays false;
Promise::cancel cancels a promise.
TimeoutException
java.util.concurrent.TimeoutException.
Implementations§
Source§impl JavaExceptionClass
impl JavaExceptionClass
Sourcepub fn get_name(self) -> &'static str
pub fn get_name(self) -> &'static str
The fully qualified name of the class, as JavaException::get_class_name returns it.
Trait Implementations§
Source§impl Clone for JavaExceptionClass
impl Clone for JavaExceptionClass
impl Copy for JavaExceptionClass
Source§impl Debug for JavaExceptionClass
impl Debug for JavaExceptionClass
Source§impl Display for JavaExceptionClass
impl Display for JavaExceptionClass
impl Eq for JavaExceptionClass
Source§impl Hash for JavaExceptionClass
impl Hash for JavaExceptionClass
Source§impl PartialEq for JavaExceptionClass
impl PartialEq for JavaExceptionClass
impl StructuralPartialEq for JavaExceptionClass
Auto Trait Implementations§
impl Forget for JavaExceptionClass
impl Freeze for JavaExceptionClass
impl Move for JavaExceptionClass
impl RefUnwindSafe for JavaExceptionClass
impl Send for JavaExceptionClass
impl Sync for JavaExceptionClass
impl Unpin for JavaExceptionClass
impl UnsafeUnpin for JavaExceptionClass
impl UnwindSafe for JavaExceptionClass
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