Categories

Error Handling

Libraries for handling errors.

Repos

50

Stars

29,674

30 days

+62

hashicorp

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

Created Dec 2014

Total 2,596
30 days +6
cockroachdb

Go error library with error portability over the network

Created Jun 2019

Total 2,486
30 days +11
rotisserie

Error handling library with readable stack traces and flexible formatting support 🎆

Created Sep 2019

eris error-handling error-logging error-traces errors
Total 1,798
30 days +2
joomcode

A comprehensive error handling library for Go

Created Aug 2018

error-handling errors go stack-traces
Total 1,273
30 days +3
uber-go

Combine one or more Go errors together

Created Mar 2017

errors go golang
Total 1,216
30 days +9
ztrue

Golang errors with stack trace and source fragments.

Created Feb 2019

debug error-handling errors errors-log go
Total 1,128
30 days +3
samber

🔥 Error handling library with context, assertion, stack trace and source fragments

Created May 2023

assert assertion attributes context error
Total 998
30 days +6
snwfdhmp

Reduce debugging time. Use static & stack-trace analysis to identify the error immediately.

Created Feb 2019

debugging-tool error-log golang
Total 459
30 days +1
emperror

The Emperor takes care of all errors personally

Created Jun 2017

error error-handler error-handling error-monitoring error-reporting
Total 397
30 days +6
Southclaws

Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors.

Created Jun 2022

errors go go-context go-errors golang
Total 308
30 days +1
emperror

Drop-in replacement for the standard library errors package and github.com/pkg/errors

Created Jul 2019

error errors stacktrace
Total 203
30 days +0
naughtygopher

A drop-in replacement for Go errors, with some added sugar! Unwrap user-friendly messages, HTTP status code, easy wrapping with multiple error types.

Created Jul 2020

awesome-go awesome-golang awesome-list error-handling errors
Total 76
30 days +0

More

pkg

Simple error handling primitives

Created Dec 2015

Total 8,265
30 days +7
juju

Common juju errors and functions to annotate errors. Based on juju/errgo

Created May 2014

Total 1,382
30 days +0
go-errors

errors with stacktraces for go

Created Jan 2015

Total 1,010
30 days +0
bracesdev

An alternative to stack traces for your Go errors

Created Nov 2023

golang
Total 824
30 days +1
palantir

Stack traces for Go errors

Created Feb 2016

octo-correct-managed
Total 564
30 days +1
hashicorp

Errwrap is a Go (golang) library for wrapping and querying errors.

Created Oct 2014

Total 458
30 days +1
morikuni

failure is a utility package for handling application errors.

Created Jun 2018

error error-handling go golang
Total 366
30 days +0
golang

[mirror]

Created Jan 2019

Total 279
30 days +0
ansel1

Golang errors with stacktrace and context

Created Jul 2015

errors golang
Total 277
30 days +0
oxequa

Handle Go recover, panic, and errors in a graceful way. Multiple errors support, basic filters and custom handlers.

Created Mar 2018

error-handling go go-library go-tools golang
Total 235
30 days +0
juju

Error tracing and annotation.

Created Feb 2014

Total 228
30 days +0
manucorporat

Try/catch/finally in Go. This is an experiment that tries to bring the exception behaviour of java/python/c++ to Golang using the same syntax.

Created Aug 2014

Total 211
30 days +0
dsnet

Simplified error handling in Go

Created May 2022

Total 173
30 days +0
spacemonkeygo

A flexible error support library for Go

Created May 2014

Total 166
30 days +0
mpvl

Package errd simplifies error and defer handling.

Created Jul 2017

Total 153
30 days +0
marmotedu

基于github.com/pkg/errors包,增加对error code的支持,完全兼容github.com/pkg/errors

Created Jan 2021

Total 110
30 days +0
MDobak

The go-xerrors is an idiomatic and lightweight package that provides a set of functions to make working with errors easier.

Created Jan 2022

error-handling go golang golang-package
Total 81
30 days +1
lainio

Automatic and modern error handling package for Go

Created Aug 2019

assertion-library error error-handling errors go
Total 81
30 days +0
mpvl

Package errc simplifies error and defer handling.

Created Nov 2017

Total 77
30 days +0
newmo-oss

A structured error handling library for Go with attributes, error codes, and stack traces

Created Nov 2025

error golang
Total 75
30 days +0
gravitational

Package for error handling and error reporting

Created Jul 2015

Total 69
30 days +0
go-playground

💥 Error Context, Stack Trace, Types and Tags for full error handling and logging.

Created Mar 2018

Total 67
30 days +0
go-faster

clear go error wrapping with caller

Created Nov 2021

error-handling errors faster go golang
Total 64
30 days +0
RoseRocket

Extended Errors (or simply xerrs) for GoLang

Created Sep 2018

Total 63
30 days +0
gojek

Go wrapper for handling zero or more errors

Created Jan 2018

errors golang thread-safety
Total 63
30 days +0
meysamhadeli

ProblemDetails is a Error Handler base on [RFC 7807] standard to map our error to standardized error payload to client.

Created Sep 2022

error error-handler error-handling errorhanders errorhandler
Total 60
30 days +0
ez4o

A package that allows you to use try/catch block in Go.

Created Jan 2022

catch ez4o go golang try
Total 59
30 days +1
speijnik

Go library for handling errors organized as a tree

Created Apr 2017

error error-handling go golang
Total 58
30 days +0
zeebo

errs is a package for making errors friendly and easy

Created Dec 2017

Total 57
30 days +1
xyimatvoid

A simple error library that supports error stacks, error codes, and error chains.

Created Aug 2022

chain err error error-handling errors
Total 56
30 days +0
go-errgo

Dependable Go errors with tracebacks

Created Jul 2014

Total 54
30 days +1
mitchellh

panicwrap is a Go library for catching and handling panics in Go applications.

Created Aug 2013 Archived

Total 452
30 days +0
facebookarchive

Package stackerr provides a way to augment errors with one or more stack traces to allow for easier debugging.

Created Apr 2014 Archived

Total 141
30 days +0
codeship

Retryable errors in Golang

Created Jun 2016 Archived

Total 119
30 days +0
reconquest

Hierarchical errors reporting done right in Golang

Created Jan 2016 Archived

error-handling errors golang
Total 74
30 days +0

From awesome-go (MIT), plus repos sorted by Jev.