All work

errbuilder-go

A Go builder that attaches project-defined codes and details to errors.

Status
maintained
Built with
Go

System

My errbuilder-go library builds errors in Go. Its module path is github.com/ZanzyTHEbar/errbuilder-go. Its Builder constructs errors with a message, gRPC-inspired project codes, and structured details. ErrMap collects errors across complex or deferred flows. Five builtin wrappers demonstrate common usage.

Constraints

  • Use across Go projects
  • Code meanings must not vary by call site
  • Deferred and multi-error flows must fit the same shape

Evidence

Related systems

  • faults-go

    Application faults with stable codes across process boundaries.

    Go
  • assert-lib

    Go assertions with logging by default and an explicit crash-on-failure option.

    Go