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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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