servererror

package
v0.0.0-...-7847555 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(code serverutil.ErrorCode, format string, a ...interface{}) error

Errorf returns a new error with given error code and formatted message. This error will satisfy the serverutil.ErrorCoder interface.

func New

func New(code serverutil.ErrorCode, msg string) error

New returns a new error with given error code and message. This error will satisfy the serverutil.ErrorCoder interface.

func Wrap

func Wrap(err error, code serverutil.ErrorCode, msg string) error

Wrap returns a new error with given error code and message, wrapping the given error. This error will satisfy the serverutil.ErrorCoder interface. Note: Using an empty message results in the message being inherited from the wrapped error.

func Wrapf

func Wrapf(err error, code serverutil.ErrorCode, format string, a ...interface{}) error

Wrapf returns a new error with given error code and formatted message, wrapping the given error. This error will satisfy the serverutil.ErrorCoder interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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