error

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrValueHasWrongType

func IsErrValueHasWrongType(err error) bool

IsErrValueHasWrongType checks if an error is ErrValueHasWrongType

func IsErrValueNotFoundForKey

func IsErrValueNotFoundForKey(err error) bool

IsErrValueNotFoundForKey checks if an error is ErrValueNotFoundForKey

Types

type ErrValueHasWrongType

type ErrValueHasWrongType struct {
	Key           string
	ExpectedValue string
}

ErrValueHasWrongType represents an error where a value saved at key has the wrong value

func (*ErrValueHasWrongType) Error

func (e *ErrValueHasWrongType) Error() string

Error is the error implementation

type ErrValueNotFoundForKey

type ErrValueNotFoundForKey struct {
	Key string
}

ErrValueNotFoundForKey represents an error where a key could not be found

func (*ErrValueNotFoundForKey) Error

func (e *ErrValueNotFoundForKey) Error() string

Error is the error implementation

Jump to

Keyboard shortcuts

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