errorType

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SingleResultErr  = errors.New("single result is nil")
	NotMatchedAnyErr = errors.New("no documents have been matched")
)

Functions

func DecodeError

func DecodeError(col string, filter, update, doc interface{}, mongoErr error) error

func DuplicatedKeyError

func DuplicatedKeyError(col string, filter, update, doc interface{}, mongoErr error) error

func InternalError

func InternalError(col string, filter, update, doc interface{}, mongoErr error) error

func IsDBInternalErr

func IsDBInternalErr(err error) bool

func IsDecodeError

func IsDecodeError(err error) bool

func IsDuplicatedKeyErr

func IsDuplicatedKeyErr(err error) bool

func IsMongoClientError

func IsMongoClientError(err error) bool

func IsNotFoundErr

func IsNotFoundErr(err error) bool

func IsTimeoutError

func IsTimeoutError(err error) bool

func MongoClientError

func MongoClientError(mongoErr error) error

func NotFoundError

func NotFoundError(col string, filter, update, doc interface{}) error

func ParseAndReturnDBError

func ParseAndReturnDBError(err error, collection string, filter, update, doc interface{}) error

func TimeoutError

func TimeoutError(col string, filter, update, doc interface{}, mongoErr error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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