Documentation ¶
Overview ¶
Package status provides statuses and errors returned by grpc handler functions
Index ¶
- func Error(code codes.Code, msg string) error
- func Errorf(code codes.Code, format string, args ...interface{}) error
- func Log(code codes.Code, err error)
- func WrapWithAborted(msg string, err error, details ...interface{}) error
- func WrapWithAlreadyExists(msg string, err error, details ...interface{}) error
- func WrapWithCanceled(msg string, err error, details ...interface{}) error
- func WrapWithDataLoss(msg string, err error, details ...interface{}) error
- func WrapWithDeadlineExceeded(msg string, err error, details ...interface{}) error
- func WrapWithFailedPrecondition(msg string, err error, details ...interface{}) error
- func WrapWithInternal(msg string, err error, details ...interface{}) error
- func WrapWithInvalidArgument(msg string, err error, details ...interface{}) error
- func WrapWithNotFound(msg string, err error, details ...interface{}) error
- func WrapWithOutOfRange(msg string, err error, details ...interface{}) error
- func WrapWithPermissionDenied(msg string, err error, details ...interface{}) error
- func WrapWithResourceExhausted(msg string, err error, details ...interface{}) error
- func WrapWithUnauthenticated(msg string, err error, details ...interface{}) error
- func WrapWithUnavailable(msg string, err error, details ...interface{}) error
- func WrapWithUnimplemented(msg string, err error, details ...interface{}) error
- func WrapWithUnknown(msg string, err error, details ...interface{}) error
- type Code
- type Status
- func CreateWithNotFound(msg string, err error, details ...interface{}) *Status
- func FromError(err error) (st *Status, ok bool)
- func New(c codes.Code, msg string) *Status
- func ParseError(err error, defaultCode codes.Code, defaultMsg string, details ...interface{}) (st *Status, msg string, rerr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapWithAborted ¶
func WrapWithAlreadyExists ¶
func WrapWithCanceled ¶
func WrapWithDataLoss ¶
func WrapWithInternal ¶
func WrapWithInvalidArgument ¶
func WrapWithNotFound ¶
func WrapWithOutOfRange ¶
func WrapWithUnauthenticated ¶
func WrapWithUnavailable ¶
func WrapWithUnimplemented ¶
func WrapWithUnknown ¶
Types ¶
type Status ¶ added in v1.1.0
func CreateWithNotFound ¶ added in v1.7.7
Click to show internal directories.
Click to hide internal directories.