Versions in this module Expand all Collapse all v1 v1.1.0 Aug 30, 2017 Changes in this version + var CodeBadRequest = "ERR_BAD_REQUEST" + var CodeForbidden = "ERR_FORBIDDEN" + var CodeInternal = "ERR_INTERNAL" + var CodeNotFound = "ERR_NOT_FOUND" + var CodeUnauthorized = "ERR_UNAUTHORIZED" + func Cause(err error) error + func Errorf(code string, format string, args ...interface{}) error + func InternalError(err error) error + func InternalErrorWithMessage(err error, message string) error + func InternalErrorf(err error, format string, args ...interface{}) error + func New(code string, message string) error + func WithStack(err error, code string) error + func Wrap(err error, code string, message string) error + type APIError interface + Code func() string + Error func() string + HTTPStatusCode func() int + JSON func() []byte + StackTrace func() errors.StackTrace