yarpcerrors

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateWithInfo added in v1.26.0

func AnnotateWithInfo(status *yarpcerrors.Status, format string, args ...interface{}) *yarpcerrors.Status

AnnotateWithInfo will take an error and add info to it's error message while keeping the same status code.

func NewWithNamef

func NewWithNamef(code yarpcerrors.Code, name string, format string, args ...interface{}) *yarpcerrors.Status

NewWithNamef calls yarpcerrors.Newf and WithName on the resulting Status.

This is put in a separate package so that we can ignore this specific file with staticcheck and existing transports can still use this logic, as WithName is deprecated but we still want to handle name behavior for backwards compatibility.

Types

This section is empty.

Jump to

Keyboard shortcuts

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