Back to Developer Roadmap

Wrapping/Unwrapping Errors

src/data/roadmaps/golang/content/wrappingunwrapping-errors@s2WlOMMKNXf6O2Qiqcm_m.md

4.0572 B
Original Source

Wrapping/Unwrapping Errors

Create error chains preserving original errors while adding context using fmt.Errorf() with %w verb. Use errors.Unwrap(), errors.Is(), and errors.As() to work with wrapped errors. Enables rich error contexts for easier debugging.

Visit the following resources to learn more: