errors

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: BSD-3-Clause Imports: 3 Imported by: 28

README

go-errors

Coverage Status Release Go Report Card CI

License

BSD-3-Clause License. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause added in v0.0.4

func Cause(err error) error

func Is added in v0.0.4

func Is(err, target error) bool

func New

func New(message string) error

func Unwrap added in v0.0.4

func Unwrap(err error) error

func Wrap

func Wrap(msg ...error) error

func WrapMessage

func WrapMessage(cause error, message string, args ...interface{}) error

Types

type ICause added in v0.0.4

type ICause interface {
	Cause() error
}

type IUnwrap added in v0.0.4

type IUnwrap interface {
	Unwrap() error
}

Jump to

Keyboard shortcuts

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