Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 Changes in this version + func NewErrorTypeMatcher(t ErrorType) utilerrors.Matcher + type Error struct + BadValue interface{} + Detail string + Field string + Type ErrorType + func Duplicate(field *Path, value interface{}) *Error + func Forbidden(field *Path, detail string) *Error + func InternalError(field *Path, err error) *Error + func Invalid(field *Path, value interface{}, detail string) *Error + func NotFound(field *Path, value interface{}) *Error + func NotSupported(field *Path, value interface{}, validValues []string) *Error + func Required(field *Path, detail string) *Error + func TooLong(field *Path, value interface{}, maxLength int) *Error + func (v *Error) Error() string + func (v *Error) ErrorBody() string + type ErrorList []*Error + func (list ErrorList) Filter(fns ...utilerrors.Matcher) ErrorList + func (list ErrorList) ToAggregate() utilerrors.Aggregate + type ErrorType string + const ErrorTypeDuplicate + const ErrorTypeForbidden + const ErrorTypeInternal + const ErrorTypeInvalid + const ErrorTypeNotFound + const ErrorTypeNotSupported + const ErrorTypeRequired + const ErrorTypeTooLong + func (t ErrorType) String() string + type Path struct + func NewPath(name string, moreNames ...string) *Path + func (p *Path) Child(name string, moreNames ...string) *Path + func (p *Path) Index(index int) *Path + func (p *Path) Key(key string) *Path + func (p *Path) Root() *Path + func (p *Path) String() string