e

package
v0.0.0-...-2dc6276 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMapKeyNotExist     = fmt.Errorf("%w: key not exist in map", ErrNoDataExist)
	ErrSliceIndexNotExist = fmt.Errorf("%w: index not exist in slice", ErrNoDataExist)
	ErrRepoDBNotExist     = fmt.Errorf("%w: dbName not exist in repo", ErrNoDataExist)
	ErrRepoCollNotExist   = fmt.Errorf("%w: collName not exist in repo", ErrNoDataExist)
)

Functions

func Unwrap

func Unwrap(err error) error

Types

type ErrorCode

type ErrorCode int
const (
	ErrNoError ErrorCode = iota
	ErrNoDataExist
)

func (ErrorCode) Code

func (e ErrorCode) Code() int

func (ErrorCode) Error

func (e ErrorCode) Error() string

Jump to

Keyboard shortcuts

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