errors

package
v0.0.0-...-9c44629 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Internal = status.Error(codes.Internal, "Internal server error")
	NotFound = status.Error(codes.InvalidArgument, "Item not found")
)

Functions

func BadError

func BadError(err string) error

func BuildInvalidArgument

func BuildInvalidArgument(fields ...FieldError) error

func BuildWithError

func BuildWithError(errorString string, fields ...FieldError) error

Types

type FieldError

type FieldError struct {
	Field       string
	Description string
}

Jump to

Keyboard shortcuts

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