errors

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As[T error](err error) *T

func Is

func Is(err, target error) bool

func IsNotFound

func IsNotFound(err error) bool

func Must

func Must[T any](ok T, err error) T

func Newf

func Newf(format string, values ...any) error

func NotImplemented

func NotImplemented(message ...string) error

func Wrapf

func Wrapf(err error, format string, values ...any) error

Types

type NotFoundError

type NotFoundError struct {
	Entity              string
	RequestedIdentifier string
}

func NotFound

func NotFound(entity string, requestedIdentifier fmt.Stringer) NotFoundError

func (NotFoundError) Error

func (e NotFoundError) Error() string

Jump to

Keyboard shortcuts

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