MCPcopy Create free account
hub / github.com/PRQL/prql / throw_illegal_argument

Function throw_illegal_argument

prqlc/bindings/java/src/lib.rs:84–88  ·  view source on GitHub ↗
(env: &mut JNIEnv, message: &str)

Source from the content-addressed store, hash-verified

82}
83
84fn 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
90fn java_string_with_exception(result: Result<String, ErrorMessages>, env: &mut JNIEnv) -> jstring {
91 match result {

Callers 3

jstring_to_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected