mongo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorConverter

type ErrorConverter struct {
	// contains filtered or unexported fields
}

ErrorConverter is the uni-db.Converter implementation of the mongo errors

func New

func New() *ErrorConverter

New creates new Error converter for the mongo db

func (*ErrorConverter) Convert

func (e *ErrorConverter) Convert(err error) *unidb.Error

Convert converts the mongo error into a *unidb.Error instance

Jump to

Keyboard shortcuts

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