Closed Togtja closed 2 years ago
@Togtja Is this still in draft ? Do you want to be merged in dev branch ?
I think there are more places where the an exception is thrown where I have not gotten to. So as is now it will add replacements for exceptions for the Unzipper class, but I have not done this for other places (Zipper class). I might get some time to look at it at some point, but atm I am quite busy, so anybody feel free to continue, doing something similar to the Zipper class.
@Togtja: Have you any progress/news about your PR?
@Togtja: Have you any progress/news about your PR?
@Neustradamus I haven't worked on it, a mixture of forgetting and time. I might get to look at it, but no promises
@Lecrapouille @Neustradamus I have added the possibility to use std::error_code
for all calls that used to throw when failing.
I have not tested this thoroughly. So feel free to write some simple programs that both trigger and not trigger exceptions, using both std::error_code and not.
(Edit: Also forgot that this pull request will be a pain to merge, but once it is tested, I'll get on that)
Closing since I'm currently working on it. See https://github.com/sebastiandev/zipper/issues/88
Here is an example that should help with #88 I do not remove exeption to keep compatibility with the old API, similar to what can be found in
std::filesystem