h5cpp icon indicating copy to clipboard operation
h5cpp copied to clipboard

Common base class for HDF related exceptions

Open dominikwerder opened this issue 7 years ago • 2 comments

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.

dominikwerder avatar Aug 03 '18 08:08 dominikwerder

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

eugenwintersberger avatar Sep 19 '18 20:09 eugenwintersberger

Tobias says this is easy to do.

zjttoefs avatar Aug 04 '20 13:08 zjttoefs