Versions in this module Expand all Collapse all v1 v1.0.0 Oct 21, 2022 Changes in this version + const BadRequestCode + const ChallengesUnsupportedCode + const ConflictCode + const DENIED + const DIGESTINVALID + const ForbiddenCode + const GeneralCode + const MANIFESTINVALID + const MethodNotAllowedCode + const NotFoundCode + const PROJECTPOLICYVIOLATION + const PreconditionCode + const UNSUPPORTED + const UnAuthorizedCode + const ViolateForeignKeyConstraintCode + var As = errors.As + var Is = errors.Is + func Cause(err error) error + func ErrorCode(err error) string + func IsChallengesUnsupportedError(err error) bool + func IsConflictError(err error) bool + func IsError(err error, code string) bool + func IsNotFoundError(err error) bool + type Error struct + Cause error + Code string + Message string + Stack *stack + func BadRequestError(err error) *Error + func ConflictError(err error) *Error + func DeniedError(err error) *Error + func Errorf(format string, args ...interface{}) *Error + func ForbiddenError(err error) *Error + func MethodNotAllowedError(err error) *Error + func New(in interface{}) *Error + func NotFoundError(err error) *Error + func PreconditionFailedError(err error) *Error + func UnauthorizedError(err error) *Error + func UnknownError(err error) *Error + func Wrap(err error, message string) *Error + func Wrapf(err error, format string, args ...interface{}) *Error + func (e *Error) Error() string + func (e *Error) MarshalJSON() ([]byte, error) + func (e *Error) StackTrace() string + func (e *Error) Unwrap() error + func (e *Error) WithCause(err error) *Error + func (e *Error) WithCode(code string) *Error + func (e *Error) WithMessage(format string, v ...interface{}) *Error + type Errors []error + func NewErrs(err error) Errors + func (errs Errors) Error() string + func (errs Errors) Len() int + type StackFrames []runtime.Frame