rpcerrors

package
v0.0.390 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Err error
	// contains filtered or unexported fields
}

func Errorf

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

func Wrap

func Wrap(code codes.Code, err error) *Error

func WrapWithSkip

func WrapWithSkip(code codes.Code, err error, skip int) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) GRPCStatus

func (e *Error) GRPCStatus() *status.Status

func (*Error) StackFrames

func (err *Error) StackFrames() []errors.StackFrame

func (*Error) Unwrap

func (e *Error) Unwrap() error

func (*Error) WithDetails added in v0.0.232

func (e *Error) WithDetails(details ...proto.Message) *Error

Directories

Path Synopsis
Package multierr provides a simple multiple-error type.
Package multierr provides a simple multiple-error type.

Jump to

Keyboard shortcuts

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