{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/weiwolves/errors","name":"github.com/weiwolves/errors","description":"Package errors provides simple error handling primitives and behavioral errors.\n\nHello there! Read the presentation http://dave.cheney.net/paste/gocon-spring-2016.pdf\nto see what the big deal is.\n\nhttp://dave.cheney.net/2016/04/27/dont-just-check-errors-handle-them-gracefully\n\nRead this for asserting errors for their behaviour http://dave.cheney.net/2014/12/24/inspecting-errors\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.Wrap function returns a new error that adds context to the\noriginal error by recording a stack trace at the point Wrap is called,\nand the supplied message. For example\n\nIf additional control is required the errors.WithStack and errors.WithMessage\nfunctions destructure errors.Wrap into its component operations of annotating\nan error with a stack trace and an a message, respectively.\n\nUsing errors.Wrap 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.Wrap 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.\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, Wrap, and Wrapf record a stack trace at the point they are\ninvoked. This information can be retrieved with the following interface.\n\nWhere 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\nstackTracer interface is not exported by this package, but is considered a part\nof stable public API.\n\nSee the documentation for Frame.Format for more details.","version":"v3.1.1+incompatible","softwareVersion":"v3.1.1+incompatible","license":"https://spdx.org/licenses/BSD-2-Clause","codeRepository":"https://github.com/weiwolves/errors","url":"https://github.com/weiwolves/errors","dateCreated":"2017-10-16","dateModified":"2019-10-11","datePublished":"2019-10-11","copyrightYear":2017,"downloadUrl":"https://proxy.golang.org/github.com/weiwolves/errors/@v/v3.1.1+incompatible.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/weiwolves/errors#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","sameAs":["https://pkg.go.dev/github.com/weiwolves/errors"]}