errors

package
v0.0.0-...-379bff8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrReflectionNotSupported = errors.New("server does not support the reflection API")

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

func NotFound

func NotFound(kind, name string) error

func ReflectionSupport

func ReflectionSupport(err error) error

Types

type Err

type Err string

func (Err) Error

func (e Err) Error() string

func (Err) New

func (e Err) New(s interface{}) Err

type NotFoundError

type NotFoundError string

func (NotFoundError) Error

func (e NotFoundError) Error() string

type Status

type Status = status.Status

func FromError

func FromError(err error) (s *Status, ok bool)

func New

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

New returns a Status representing c and msg.

Jump to

Keyboard shortcuts

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