Versions in this module Expand all Collapse all v0 v0.4.1 Nov 17, 2020 v0.4.0 Nov 17, 2020 Changes in this version + func FromHeader(header *headers.ResponseHeader) error + func IsAlreadyExists(err error) bool + func IsCanceled(err error) bool + func IsConflict(err error) bool + func IsForbidden(err error) bool + func IsInternal(err error) bool + func IsInvalid(err error) bool + func IsNotFound(err error) bool + func IsNotSupported(err error) bool + func IsTimeout(err error) bool + func IsType(err error, t Type) bool + func IsUnauthorized(err error) bool + func IsUnavailable(err error) bool + func IsUnknown(err error) bool + func New(t Type, msg string, args ...interface{}) error + func NewAlreadyExists(msg string) error + func NewCanceled(msg string) error + func NewConflict(msg string) error + func NewForbidden(msg string) error + func NewInternal(msg string) error + func NewInvalid(msg string) error + func NewNotFound(msg string) error + func NewNotSupported(msg string) error + func NewTimeout(msg string) error + func NewUnauthorized(msg string) error + func NewUnavailable(msg string) error + func NewUnknown(msg string) error + type Type int + const AlreadyExists + const Canceled + const Conflict + const Forbidden + const Internal + const Invalid + const NotFound + const NotSupported + const Timeout + const Unauthorized + const Unavailable + const Unknown + func TypeOf(err error) Type + type TypedError struct + Message string + Type Type + func (e *TypedError) Error() string