errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyEmpty            = errors.New("key cannot be empty")
	ErrValueNil            = errors.New("value cannot be null")
	ErrDBNotInit           = errors.New("database not initialized")
	ErrFileNameEmpty       = errors.New("filename cannot be empty")
	ErrAlreadySave         = errors.New("save operation already in progress")
	ErrDirtyThresholdCount = errors.New("DirtyThresholdCount is greater than '0'")
	ErrDirtyThresholdRatio = errors.New("DirtyThresholdRatio is '0 ~ 1'")
	ErrFloatSpecial        = errors.New("Invalid Error: result is Nan(Not a Number) or Infinity")
)

Functions

func ErrInvalidDataLength

func ErrInvalidDataLength(expected, actual int) error

func ErrNoDataForKey

func ErrNoDataForKey(key string) error

func ErrTypeMismatch

func ErrTypeMismatch(key string, expected, actual types.DataType) error

func ErrUnsignedUnderflow

func ErrUnsignedUnderflow[T generic.Unsigned](key string, current, delta T) error

func ErrValueOverflow

func ErrValueOverflow[T generic.Numberic](key string, data_type types.DataType, current, delta T) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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