errors
Go error library with error portability over the network (by cockroachdb)
backward-cpp
A beautiful stack trace pretty printer for C++ (by bombela)
errors | backward-cpp | |
---|---|---|
6 | 4 | |
1,979 | 3,597 | |
1.5% | - | |
5.1 | 4.7 | |
11 days ago | 9 days ago | |
Go | C++ | |
Apache License 2.0 | 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.
errors
Posts with mentions or reviews of errors.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-29.
-
Who returns specific error interfaces to model domain errors?
I usually use https://github.com/cockroachdb/errors for reasons that you can read in their documentation. It is well thought out and is no more complicated than it needs to be. It is a drop in replacement for the standard errors package and they have built this from experience, which is usually a good thing. It is usually best to stick to interfaces. With concrete errors, you will be doomed to deal with them forever.
-
Go's Error Handling Is a Form of Storytelling
https://github.com/cockroachdb/errors has worked great for me! Agreed this should be part of the core language though.
-
Anyone using github.com/pkg/errors for stack traces?
https://github.com/cockroachdb/errors is the most featureful in this space, but is heavy if you don't need network portability, redaction, and all the other bells and whistles.
-
go-faster/errors: clear go error wrapping with caller (xerrors fork with Wrap)
The cockroachdb/errors is too big
- Error stack traces in Go with x/xerror
-
Comparison golang stacktrace error library output
Golang is great. I mostly love it. However, collecting an error with relevant context and a nicely formatted stacktrace is kind of a mess of competing approaches. This this feature comparison is a good overview of the landscape.
backward-cpp
Posts with mentions or reviews of backward-cpp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-23.
-
Advice on custom assertion libraries
I've used backward-cpp for printing stack traces and I'm very satisfied!
-
How to generate core dump in windows?
if you're just looking for a way to log the stack trace at the time, you can use: https://github.com/bombela/backward-cpp
-
Error stack traces in Go with x/xerror
100% Shameless plug. Stack capture and pretty printer for C++: https://github.com/bombela/backward-cpp
-
Getting around static method limitation of backtrace/dladdr
have you tried backward-cpp?: https://github.com/bombela/backward-cpp
What are some alternatives?
When comparing errors and backward-cpp you can also consider the following projects:
golangci-lint - Fast linters Runner for Go
Google Test - GoogleTest - Google Testing and Mocking Framework
emperror - The Emperor takes care of all errors personally
gdb-frontend - ☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev
zerolog - Zero Allocation JSON Logger
Google Mock
errors - Simple error handling primitives
hayai - C++ benchmarking framework
json-logs - A tool to pretty-print JSON logs, like those from zap or logrus.
ig-debugheap - Debug heap useful for tracking down memory errors.
stacktrace - Stack traces for Go errors
CppUTest - CppUTest unit testing and mocking framework for C/C++