Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to return an error with arbitrary message #30

Open
urmaul opened this issue Jul 4, 2023 · 2 comments
Open

No way to return an error with arbitrary message #30

urmaul opened this issue Jul 4, 2023 · 2 comments

Comments

@urmaul
Copy link

urmaul commented Jul 4, 2023

I have the "catch all panics" wrapper around the code and return a JNI error in this case. With the introduction of errors enum in 0.2.1 this stopped working. Right now JniError::Unknown looks like the best type for this case but there is no way to also provide the error message.

@Skaldebane
Copy link

Might be related to #25?

@uvlad7
Copy link
Contributor

uvlad7 commented Mar 27, 2024

This can be an implementation example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants