{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/pingcap/errors","name":"github.com/pingcap/errors","description":"Package errors provides simple error handling primitives.\n\nThe traditional error handling idiom in Go is roughly akin to\n\nwhich applied recursively up the call stack results in error reports\nwithout context or debugging information. The errors package allows\nprogrammers to add context to the failure path in their code in a way\nthat does not destroy the original value of the error.\n\nThe errors.Annotate function returns a new error that adds context to the\noriginal error by recording a stack trace at the point Annotate is called,\nand the supplied message. For example\n\nIf additional control is required the errors.AddStack and errors.WithMessage\nfunctions destructure errors.Annotate into its component operations of annotating\nan error with a stack trace and an a message, respectively.\n\nUsing errors.Annotate constructs a stack of errors, adding context to the\npreceding error. Depending on the nature of the error it may be necessary\nto reverse the operation of errors.Annotate to retrieve the original error\nfor inspection. Any error value which implements this interface\n\ncan be inspected by errors.Cause. errors.Cause will recursively retrieve\nthe topmost error which does not implement causer, which is assumed to be\nthe original cause. For example:\n\ncauser interface is not exported by this package, but is considered a part\nof stable public API.\nerrors.Unwrap is also available: this will retrieve the next error in the chain.\n\nAll error values returned from this package implement fmt.Formatter and can\nbe formatted by the fmt package. The following verbs are supported\n\nNew, Errorf, Annotate, and Annotatef record a stack trace at the point they are invoked.\nThis information can be retrieved with the StackTracer interface that returns\na StackTrace. Where errors.StackTrace is defined as\n\nThe Frame type represents a call site in the stack trace. Frame supports\nthe fmt.Formatter interface that can be used for printing information about\nthe stack trace of this error. For example:\n\nSee the documentation for Frame.Format for more details.\n\nerrors.Find can be used to search for an error in the error chain.","version":"v0.11.4","softwareVersion":"v0.11.4","license":"https://spdx.org/licenses/BSD-2-Clause","codeRepository":"https://github.com/pingcap/errors","issueTracker":"https://github.com/pingcap/errors/issues","url":"https://github.com/pingcap/errors","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2016-04-24","dateModified":"2019-05-15","datePublished":"2019-05-15","copyrightYear":2016,"downloadUrl":"https://proxy.golang.org/github.com/pingcap/errors/@v/v0.11.4.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/pingcap/errors#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/pingcap/errors"],"https://www.w3.org/ns/activitystreams#likes":41,"https://forgefed.org/ns#forks":39}