Skip to content

Commit 42ada10

Browse files
Automaatbartsmykla
andauthored
Update docs/madr/decisions/094-modern-error-handling.md
Co-authored-by: Bart Smykla <bartek@smykla.com> Signed-off-by: Marcin Skalski <skalskimarcin33@gmail.com>
1 parent 19e841d commit 42ada10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/madr/decisions/094-modern-error-handling.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,23 @@ Stack overhead: negligible, only on error creation
105105
## References
106106

107107
### Go Error Handling
108+
108109
- [Best Practices - JetBrains](https://www.jetbrains.com/guide/go/tutorials/handle_errors_in_go/best_practices/)
109110
- [Working with Errors - Go Blog](https://go.dev/blog/go1.13-errors)
110111
- [Error Wrapping - Bitfield](https://bitfieldconsulting.com/posts/wrapping-errors)
111112

112113
### Sentinel vs Custom Types
114+
113115
- [Go Error Handling Techniques](https://arashtaher.wordpress.com/2024/09/05/go-error-handling-techniques-exploring-sentinel-errors-custom-types-and-client-facing-errors/)
114116
- [Sentinel vs Custom - alesr](https://alesr.github.io/posts/go-errors/)
115117

116118
### fmt.Errorf vs pkg/errors
119+
117120
- [Wrapf vs Errorf - Stack Overflow](https://stackoverflow.com/questions/61933650/whats-the-difference-between-errors-wrapf-errors-errorf-and-fmt-errorf)
118121
- [Can stdlib replace pkg/errors?](https://blog.dharnitski.com/2019/09/09/go-errors-are-not-pkg-errors/)
119122

120123
### Performance & Alternatives
124+
121125
- [errors.Is() 500% slowdown](https://www.dolthub.com/blog/2024-05-31-benchmarking-go-error-handling/)
122126
- [CockroachDB errors library](https://dr-knz.net/cockroachdb-errors-everyday.html)
123127
- [cockroachdb/errors docs](https://pkg.go.dev/github.com/cockroachdb/errors)

0 commit comments

Comments
 (0)