errors

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target any) bool

func Is

func Is(err error, target error) bool

Types

type Error

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

func From

func From(v any, code ...int) *Error

func New

func New(message string, code ...int) *Error

func Newf

func Newf(message string, v ...any) *Error

func (Error) Code

func (e Error) Code() int

func (Error) Error

func (e Error) Error() string

func (*Error) WithStack added in v1.8.1

func (e *Error) WithStack() *Error

Jump to

Keyboard shortcuts

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