errors

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternalDB           = errors.New("internal database error")
	ErrInternalCache        = errors.New("internal cache error")
	ErrInternalServer       = errors.New("internal server error")
	ErrInvalidRequestFormat = errors.New("invalid request format")
	ErrInvalidMessageType   = errors.New("invalid message type")
	ErrInvalidID            = errors.New("invalid id")
	ErrMangaNotFound        = errors.New("manga not found")
	ErrDataStillNew         = errors.New("data is still new")
)

Error list.

Functions

func ErrDatetimeField added in v0.2.0

func ErrDatetimeField(str, value string) error

ErrDatetimeField is error for datetime field.

func ErrGTEField

func ErrGTEField(str, value string) error

ErrGTEField is error for greater than or equal field.

func ErrGTField

func ErrGTField(str, value string) error

ErrGTField is error for greater than field.

func ErrLTEField

func ErrLTEField(str, value string) error

ErrLTEField is error for lower than or equal field.

func ErrLTField

func ErrLTField(str, value string) error

ErrLTField is error for lower than field.

func ErrOneOfField

func ErrOneOfField(str, value string) error

ErrOneOfField is error for oneof field.

func ErrRequiredField

func ErrRequiredField(str string) error

ErrRequiredField is error for missing field.

func Get

func Get(ctx context.Context) []string

Get to get error stack.

func Init

func Init(ctx context.Context) context.Context

Init to init context for error stack.

func Wrap

func Wrap(ctx context.Context, err error, errs ...error) error

Wrap to wrap error and put it in the stack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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