Awesome Go

Error Handling

21 libraries in this category

go-multierror

Go (golang) package for representing a list of errors as a single error

2,591Error HandlingError Handling
errors

Go error library with error portability over the network

2,475Error HandlingError Handling
eris

A better way to handle, trace, and log errors in Go. Compatible with the standard error library and github.com/pkg/errors

1,796Error HandlingError Handling
errorx

A feature rich error package with stack traces, composition of errors and more

1,268Error HandlingError Handling
multierr

Package for representing a list of errors as a single error

1,205Error HandlingError Handling
tracerr

Golang errors with stack trace and source fragments

1,126Error HandlingError Handling
oops

Error handling with context, stack trace and source fragments

995Error HandlingError Handling
errlog

Hackable package that determines responsible source code for an error (and some other fast-debugging features). Pluggable to any logger in-place

458Error HandlingError Handling
emperror

Error handling tools and best practices for Go libraries and applications

390Error HandlingError Handling
Fault

An ergonomic mechanism for wrapping errors in order to facilitate structured metadata and context for error values

308Error HandlingError Handling
errors

Drop-in replacement for the standard library errors package and github.com/pkg/errors. Provides various error handling primitives

204Error HandlingError Handling
errors

Drop-in replacement for builtin Go errors. This is a minimal error handling package with custom error types, user friendly messages, Unwrap & Is. With very easy to use and straightforward helper functions

76Error HandlingError Handling
errors

Drop-in replacement for builtin Go errors. This is a minimal error handling package with custom error types, user friendly messages, Unwrap & Is. With very easy to use and straightforward helper functions.

64Error HandlingLibraries for handling errors.
exception

A simple utility package for exception handling with try-catch in Golang

38Error HandlingError Handling
Falcon

A Simple Yet Highly Powerful Package For Error Handling

11Error HandlingError Handling
errors

The most simple error wrapper with awesome performance and minimal memory overhead

7Error HandlingError Handling
errors

Simple golang error handling with classification primitives

6Error HandlingError Handling
metaerr

A library to create your custom error builders producing structured errors with metadata from different sources and optional stacktraces

6Error HandlingError Handling
go-bruh

Error handling with stack traces, custom formatting, and observability integration

3Error HandlingError Handling
go-errr

Error handling library with Catch/Recover semantics, wrapped error chains, and stack traces for Go

2Error HandlingError Handling
ctxerrors

Wrap errors with the file, line, and function name of each call site

1Error HandlingError Handling