Registry / utility / morikuni-failure

morikuni-failure

JSON →
library1.1.2gogounverified

Provides an error representation with error codes and extensible error interface with wrappers.

go get github.com/morikuni/failure
INSTALL
IMPORT
SIG · MORIKUNI-FAILURE
M
morikuni-failure
utilitygov1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

failure
github.com/morikuni/failure

Create a new failure error with a code

package main import ( "fmt" "github.com/morikuni/failure" ) func main() { err := failure.New("something went wrong", failure.WithCode("E_INTERNAL")) fmt.Println(err) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
morikuni-failure — go get morikuni-failure · libregistry