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

Common base class for HDF related exceptions #359

Open
dominikwerder opened this issue Aug 3, 2018 · 2 comments
Open

Common base class for HDF related exceptions #359

dominikwerder opened this issue Aug 3, 2018 · 2 comments

Comments

@dominikwerder
Copy link
Contributor

dominikwerder commented Aug 3, 2018

Currently, many exceptions thrown by h5cpp can be identified only via inspection of std::runtime_error::what.

A common base type for all exceptions thrown in response to errors originating from libhdf would allow more fine grained error handling.

A further enhancement could be custom exception types for common failure cases, especially those which one can recover from.

@eugenwintersberger
Copy link
Collaborator

Good point. We need to discuss this. But you made a point here.

@zjttoefs
Copy link
Contributor

zjttoefs commented Aug 4, 2020

Tobias says this is easy to do.

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

No branches or pull requests

3 participants