exceptxx
C++ exception handling library (by SergiusTheBest)
snct-constraints
Prevent whole classes of errors by constraining input parameters (by SRNissen)
exceptxx | snct-constraints | |
---|---|---|
1 | 7 | |
34 | 15 | |
- | - | |
2.8 | 0.0 | |
4 months ago | 17 days ago | |
C++ | C++ | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
exceptxx
Posts with mentions or reviews of exceptxx.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-01.
-
Using Exceptions for all Error Handling.... in Theory
Unfortunately I can't post any code as it's not open source. But I'm using exceptions a lot (mostly for checking WinApi and CUDA calls). It's much better than other methods, it provides all necessary information to write to a log and doesn't pollute sources with boilerplate code. I'm throwing and catching exceptions with the help of my own library: https://github.com/SergiusTheBest/exceptxx
snct-constraints
Posts with mentions or reviews of snct-constraints.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-01.
-
Using Exceptions for all Error Handling.... in Theory
This'll require that you write a lot of classes to constrain parameters. May I suggest you don't, and instead use snct::Constrained?
-
Error handling in API design
I would recommend also watching the second half of Ben Deane's Using Types Effectively and, if that made you think "I should start writing some Total Functions," I suggest you follow it up by looking at the snct::Constrained class for contraining input parameters.
-
C++ Show and Tell - November 2022
snct::Constrained
-
Can I learn if a class has been templated on a specific type
I've went ahead and created a pull request: https://github.com/SRNissen/snct-constraints/pull/1
- Make error handling the users problem - Søren Nissen - Meeting C++ online lightning talks
-
C++ Show and Tell - June 2022
I created snct::constraints, a wrapper that lets you express constraints on parameters directly in code. This lets you write total functions, and puts the constraints right there in code so your users don't need to read separate docs to understand what does/doesn't violate preconditions.