(env: &mut JNIEnv, message: &str)
| 82 | } |
| 83 | |
| 84 | fn throw_illegal_argument(env: &mut JNIEnv, message: &str) { |
| 85 | if let Err(e) = env.throw_new("java/lang/IllegalArgumentException", message) { |
| 86 | eprintln!("Error throwing IllegalArgumentException: {e:?}"); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | fn java_string_with_exception(result: Result<String, ErrorMessages>, env: &mut JNIEnv) -> jstring { |
| 91 | match result { |
no outgoing calls
no test coverage detected