mirror of
https://github.com/hexedtech/jni-toolbox.git
synced 2024-11-21 23:14:55 +01:00
feat: JniToolboxError trait also for JniError
This commit is contained in:
parent
8f272bd905
commit
f136071c10
1 changed files with 6 additions and 0 deletions
|
@ -9,3 +9,9 @@ impl JniToolboxError for jni::errors::Error {
|
|||
"java/lang/RuntimeException".to_string()
|
||||
}
|
||||
}
|
||||
|
||||
impl JniToolboxError for jni::errors::JniError {
|
||||
fn jclass(&self) -> String {
|
||||
"java/lang/RuntimeException".to_string()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue