Closed AdelKS closed 1 year ago
This sounds reasonable. Thank you for your proposal!
https://github.com/felixguendling/cista/pull/158 introduces basic support for catching exceptions coming from cista. Please create a new issue if you require more detailed distinction between exceptions. Thank you for bringing this up!
Thanks for your great work ! That's already plenty.
Hello,
Specializing exceptions that cista throws would be very nice to be able to tell them apart from other kinds of exceptions through specialized catch clauses. For example a
cista::deserialize_error("Invalid type hash")
will enable to not abort the program when simply trying to deserialize.What do you think ?
Currently there still is the possibility to do this downstream, by
try-catch
ing cista calls and rethrowing specialized exceptions down the stack.Adel