Versions in this module Expand all Collapse all v0 v0.43.0 May 15, 2019 v0.42.0 May 8, 2019 v0.41.0 May 8, 2019 v0.40.0 May 8, 2019 Changes in this version + func DoNotWrap(err error) bool + func ErrorAs(err error, target interface{}, errorAs func(error, interface{}) bool) bool + type Error struct + Code ErrorCode + func New(c ErrorCode, err error, callDepth int, msg string) *Error + func Newf(c ErrorCode, err error, format string, args ...interface{}) *Error + func (e *Error) Error() string + func (e *Error) Format(s fmt.State, c rune) + func (e *Error) FormatError(p xerrors.Printer) (next error) + func (e *Error) Unwrap() error + type ErrorCode int + const AlreadyExists + const Canceled + const DeadlineExceeded + const FailedPrecondition + const Internal + const InvalidArgument + const NotFound + const OK + const PermissionDenied + const ResourceExhausted + const Unimplemented + const Unknown + func GRPCCode(err error) ErrorCode + func (i ErrorCode) String() string