errors

package
v0.0.0-...-b563d55 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadValue

func BadValue(fieldName string, fieldValue interface{}) error

BadValue returns an error indicating a field did not have a good value.

func InternalError

func InternalError(err error) error

InternalError returns an error with raw details.

func NotFound

func NotFound(fieldName string, id string) error

NotFound returns an error indicating which item was not in the database.

func RequiredField

func RequiredField(fieldName string) error

RequiredField returns an error indicating a field did not have a value.

func WithCode

func WithCode(code codes.Code, format string) error

WithCode creates a gRPC status error with associated call stack.

func WithCodef

func WithCodef(code codes.Code, format string, args ...interface{}) error

WithCodef creates a gRPC status error with associated call stack.

func Wrap

func Wrap(err error) error

Wrap the error with a gRPC status error, retain the call stack.

func WrapWithCode

func WrapWithCode(err error, code codes.Code, format string) error

WrapWithCode the error with a gRPC status error, retain the call stack.

func WrapWithCodef

func WrapWithCodef(err error, code codes.Code, format string, args ...interface{}) error

WrapWithCodef the error with a gRPC status error, retain the call stack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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