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

Improve Exception throwing #40

Open
Marcono1234 opened this issue Jan 10, 2021 · 0 comments
Open

Improve Exception throwing #40

Marcono1234 opened this issue Jan 10, 2021 · 0 comments

Comments

@Marcono1234
Copy link
Contributor

Currently the project throws quite a lot of RuntimeExceptions (also in native code). This makes it hard for the user to handle different exception types in different ways and the exception type itself is not very meaningful.

It might be good to redesign the API and create custom exception types, ideally checked ones since when dealing with native code unexpected things might happen and the caller should be required to handle those (?).

Maybe it would be good to target these (breaking) changes for version 2.0.0?

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

1 participant