fn assert_pending_java_exception_detailed(
    env: &JNIEnv,
    expected_type: Option<&str>,
    expected_message: Option<&str>,
) {
    assert!(env.exception_check().unwrap());
    let exception = env.exception_occurred().expect("Unable to get exception");
    env.exception_clear().unwrap();

    if let Some(expected_type) = expected_type {
        assert_exception_type(env, exception, expected_type);
    }

    if let Some(expected_message) = expected_message {
        assert_exception_message(env, exception, expected_message);
    }
}
// Helper method that asserts there is a pending Java exception of `expected_type` with
// `expected_message` and clears it if any.
Helper method that asserts there is a pending Java exception of `expected_type` with
`expected_message` and clears it if any.
Helper method that asserts there is a pending Java exception of ` expected_type ` with ` expected_message ` and clears it if any .
fn assert_pending_java_exception_detailed(
    env: &JNIEnv,
    expected_type: Option<&str>,
    expected_message: Option<&str>,
) {
    assert!(env.exception_check().unwrap());
    let exception = env.exception_occurred().expect("Unable to get exception");
    env.exception_clear().unwrap();
    if let Some(expected_type) = expected_type {
        assert_exception_type(env, exception, expected_type);
    }
    if let Some(expected_message) = expected_message {
        assert_exception_message(env, exception, expected_message);
    }
}
fn assert_pending_java_exception_detailed ( env : & JNIEnv , expected_type : Option < & str > , expected_message : Option < & str > , ) { assert ! ( env exception_check ( ) unwrap ( ) ) ; let exception = env . exception_occurred ( ) . expect ( " " ) ; env . exception_clear ( ) . unwrap ( ) ; if let Some ( expected_type ) = expected_type { assert_exception_type ( env , exception , expected_type ) ; } if let Some ( expected_message ) = expected_message { assert_exception_message ( env , exception , expected_message ) ; } }
Helper method that asserts there is a pending Java exception of `expected_type` with
`expected_message` and clears it if any.
Helper method that asserts there is a pending Java exception of ` expected_type ` with ` expected_message ` and clears it if any .
env
&JNIEnv
expected_type
Option<&str>
expected_message
Option<&str>