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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.