errors

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(msg string) error

func NewE

func NewE(err error) error

func NewEf

func NewEf(err error, msg string, a ...interface{}) error

func NewHttpError

func NewHttpError[T []byte | string](code int, msg T) error

func Newf

func Newf(msg string, a ...interface{}) error

func NotInLocals

func NotInLocals(key string) error

Types

type HttpError

type HttpError struct {
	Code int
	Msg  string
}

func (HttpError) Error

func (h HttpError) Error() string

Jump to

Keyboard shortcuts

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