errors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

func Wrap

func Wrap(err error, message string) error

Types

type ErrorType

type ErrorType uint
const (
	Unknown ErrorType = iota
	InvalidArgument
	NotFound
)

func GetType

func GetType(err error) ErrorType

func (ErrorType) New

func (et ErrorType) New(message string) error

func (ErrorType) Wrap

func (et ErrorType) Wrap(err error, message string) error

Jump to

Keyboard shortcuts

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