errors

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors handles errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is added in v0.18.0

func Is(err, target error) bool

Is reports whether any error in err's chain matches target.

func Wrap added in v0.15.1

func Wrap(err error, message string) error

Wrap returns an error annotating err with a stack trace at the point Wrap is called.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents an error

func New

func New(message string, args ...interface{}) *Error

New returns error handler.

func (Error) Error

func (e Error) Error() string

Error returns the error message.

Jump to

Keyboard shortcuts

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