Versions in this module Expand all Collapse all v1 v1.0.0 Feb 4, 2019 Changes in this version + var New = errors.New + func AggregateToResponse(data interface{}, errResponse ErrorResponse) bool + func Wrap(reason error, options ...Option) error + func WrapCode(reason error, code string) error + func WrapHttp(reason error, status int) error + func WrapMessage(reason error, code string) error + func WrapModule(reason error, module string) error + func WrapValidation(reason error) error + type ErrorResponse interface + SetParam func(name string, value interface{}) + type ErrorResponseAggregator interface + AppendData func(response ErrorResponse) + type ErrorWithCode interface + Code func() string + Error func() string + type ErrorWithMessage interface + Message func() string + type ErrorWithReason interface + Reason func() error + type HttpError interface + StatusCode func() int + type ModuleError interface + Module func() string + type Option func(err error) error + func Code(code string) Option + func Http(status int) Option + func Message(message string) Option + func Module(module string) Option + func Validation() Option + type ValidationError struct + func (err *ValidationError) AppendData(response ErrorResponse) + func (err *ValidationError) Code() string + func (err *ValidationError) Error() string + func (err *ValidationError) Reason() error Incompatible versions in this module v2.1.0+incompatible May 23, 2019 v2.0.0+incompatible May 6, 2019 Other modules containing this package github.com/lab259/errors/v2