Re:Why Go's Error Handling Is Awesome
by majewsky on Tuesday July 07, 2020 @07:17PM
(#23765349)
This problem has been addressed in Go 1.13 with wrapped errors. If you get an error from a filesystem operation, you can
which is a different error type, but the caller can downcast it into the original filesystem error type (even across multiple layers of wrapping) if they're interested in specifically these types of errors.
[ Parent
| on HN ]
There are no comments on this comment yet.