status

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package status provides statuses and errors returned by grpc handler functions

Index

Constants

This section is empty.

Variables

View Source
var Code = status.Code

Functions

func Error added in v1.0.0

func Error(code codes.Code, msg string) error

func Errorf added in v1.0.0

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

func FromError

func FromError(err error) (st *status.Status, ok bool)

func New added in v1.0.0

func New(c codes.Code, msg string) *status.Status

func WrapWithAborted

func WrapWithAborted(msg string, err error, details ...interface{}) error

func WrapWithAlreadyExists

func WrapWithAlreadyExists(msg string, err error, details ...interface{}) error

func WrapWithCanceled

func WrapWithCanceled(msg string, err error, details ...interface{}) error

func WrapWithDataLoss

func WrapWithDataLoss(msg string, err error, details ...interface{}) error

func WrapWithDeadlineExceeded

func WrapWithDeadlineExceeded(msg string, err error, details ...interface{}) error

func WrapWithFailedPrecondition

func WrapWithFailedPrecondition(msg string, err error, details ...interface{}) error

func WrapWithInternal

func WrapWithInternal(msg string, err error, details ...interface{}) error

func WrapWithInvalidArgument

func WrapWithInvalidArgument(msg string, err error, details ...interface{}) error

func WrapWithNotFound

func WrapWithNotFound(msg string, err error, details ...interface{}) error

func WrapWithOutOfRange

func WrapWithOutOfRange(msg string, err error, details ...interface{}) error

func WrapWithPermissionDenied

func WrapWithPermissionDenied(msg string, err error, details ...interface{}) error

func WrapWithResourceExhausted

func WrapWithResourceExhausted(msg string, err error, details ...interface{}) error

func WrapWithUnauthenticated

func WrapWithUnauthenticated(msg string, err error, details ...interface{}) error

func WrapWithUnavailable

func WrapWithUnavailable(msg string, err error, details ...interface{}) error

func WrapWithUnimplemented

func WrapWithUnimplemented(msg string, err error, details ...interface{}) error

func WrapWithUnknown

func WrapWithUnknown(msg string, err error, details ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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