status

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 7 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 (
	Canceled           = codes.Canceled
	Unknown            = codes.Unknown
	InvalidArgument    = codes.InvalidArgument
	DeadlineExceeded   = codes.DeadlineExceeded
	NotFound           = codes.NotFound
	AlreadyExists      = codes.AlreadyExists
	PermissionDenied   = codes.PermissionDenied
	ResourceExhausted  = codes.ResourceExhausted
	FailedPrecondition = codes.FailedPrecondition
	Aborted            = codes.Aborted
	OutOfRange         = codes.OutOfRange
	Unimplemented      = codes.Unimplemented
	Internal           = codes.Internal
	Unavailable        = codes.Unavailable
	DataLoss           = codes.DataLoss
	Unauthenticated    = codes.Unauthenticated

	Code = status.Code
)

Functions

func FromError

func FromError(err error) *errors.Errors_RPC

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