failures

package
Version: v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

type Failure interface {
	error
	ID() FailureID
}

Failure is an extended error that also includes an ID to be used to identify a specific error

func Wrap

func Wrap(message string, id FailureID, wrappedError error, v ...interface{}) Failure

Wrap returns a failure with the given message and id, saving the message of wrappedError for appending to Error()

type FailureID

type FailureID int

FailureID is a number to be used to identify a specific error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL