errors

package
v0.0.0-...-1eed7ee Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MongoErrorResponse

func MongoErrorResponse(err error) error

func NewConflictError

func NewConflictError(typ, field, value string) error

Types

type ConflictError

type ConflictError struct {
	Type  string
	Field string
	Value string
	// contains filtered or unexported fields
}

func (ConflictError) Error

func (err ConflictError) Error() string

type ValidationError

type ValidationError struct {
	Field string
	Type  string
	// contains filtered or unexported fields
}

func NewValidationError

func NewValidationError(f, t string) *ValidationError

func (ValidationError) Error

func (err ValidationError) Error() string

Jump to

Keyboard shortcuts

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