errors

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotLoggedIn error = fmt.Errorf("%d Not LoggedIn", http.StatusUnauthorized)

Functions

func As

func As(err error, target any) bool

func Assert

func Assert(condition bool, err error)

func AssertNoError

func AssertNoError(err error, msg error)

func ErrMarshal

func ErrMarshal(err error) error

func HandleErr

func HandleErr(e *error)

func Is

func Is(err error, target error) bool

func New

func New(msg string) error

func NewE

func NewE(err error) error

func NewEf

func NewEf(err error, msg string, args ...any) error

func Newf

func Newf(msg string, a ...any) error

func OfType

func OfType[T error](err error) bool

Types

type ErrNotFound

type ErrNotFound struct {
	Message string
	// contains filtered or unexported fields
}

func (ErrNotFound) Error

func (err ErrNotFound) Error() string

Jump to

Keyboard shortcuts

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