Documentation
¶
Index ¶
- Variables
- func DecodeError(col string, filter, update, doc interface{}, mongoErr error) error
- func DuplicatedKeyError(col string, filter, update, doc interface{}, mongoErr error) error
- func InternalError(col string, filter, update, doc interface{}, mongoErr error) error
- func IsDBInternalErr(err error) bool
- func IsDecodeError(err error) bool
- func IsDuplicatedKeyErr(err error) bool
- func IsMongoClientError(err error) bool
- func IsNotFoundErr(err error) bool
- func IsTimeoutError(err error) bool
- func MongoClientError(mongoErr error) error
- func NotFoundError(col string, filter, update, doc interface{}) error
- func ParseAndReturnDBError(err error, collection string, filter, update, doc interface{}) error
- func TimeoutError(col string, filter, update, doc interface{}, mongoErr error) error
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 DuplicatedKeyError ¶
func InternalError ¶
func IsDBInternalErr ¶
func IsDecodeError ¶
func IsDuplicatedKeyErr ¶
func IsMongoClientError ¶
func IsNotFoundErr ¶
func IsTimeoutError ¶
func MongoClientError ¶
func NotFoundError ¶
func ParseAndReturnDBError ¶
func TimeoutError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.