Versions in this module Expand all Collapse all v1 v1.0.3 Feb 29, 2024 v1.0.2 Feb 29, 2024 Changes in this version + var ErrPreconditionViolated = errors.New("precondition is violated") + func As(err error, target interface{}) bool + func Cause(err error) error + func Errorf(format string, args ...interface{}) error + func FilterOut(err error, fns ...Matcher) error + func FromGrpcError(e error) error + func Is(err, target error) bool + func IsCode(err error, code int) bool + func MustRegister(coder Coder) + func New(message string) error + func Reduce(err error) error + func Register(coder Coder) + func ToGrpcError(e error) error + func Unwrap(err error) error + func WithCode(code int, format string, args ...interface{}) error + func WithMessage(err error, message string) error + func WithMessagef(err error, format string, args ...interface{}) error + func WithStack(err error) error + func Wrap(err error, message string) error + func WrapC(err error, code int, format string, args ...interface{}) error + func Wrapf(err error, format string, args ...interface{}) error + type Aggregate interface + Errors func() []error + Is func(error) bool + func AggregateGoroutines(funcs ...func() error) Aggregate + func CreateAggregateFromMessageCountMap(m MessageCountMap) Aggregate + func Flatten(agg Aggregate) Aggregate + func NewAggregate(errlist []error) Aggregate + type Coder interface + Code func() int + HTTPStatus func() int + Reference func() string + String func() string + func ParseCoder(err error) Coder + type Empty struct + type Frame uintptr + func (f Frame) Format(s fmt.State, verb rune) + func (f Frame) MarshalText() ([]byte, error) + type Matcher func(error) bool + type MessageCountMap map[string]int + type StackTrace []Frame + func (st StackTrace) Format(s fmt.State, verb rune) + type String map[string]Empty + func NewString(items ...string) String + func StringKeySet(theMap interface{}) String + func (s String) Delete(items ...string) String + func (s String) Difference(s2 String) String + func (s String) Equal(s2 String) bool + func (s String) Has(item string) bool + func (s String) HasAll(items ...string) bool + func (s String) HasAny(items ...string) bool + func (s String) Insert(items ...string) String + func (s String) Intersection(s2 String) String + func (s String) IsSuperset(s2 String) bool + func (s String) Len() int + func (s String) List() []string + func (s String) PopAny() (string, bool) + func (s String) Union(s2 String) String + func (s String) UnsortedList() []string