handling

package
v0.0.0-...-1aa8ce4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(err error, options ...Option) error

func Wrap

func Wrap(err error, options ...Option) error

Types

type ApplicationError

type ApplicationError struct {
	// contains filtered or unexported fields
}

func New

func New(message string, code codes.Code) *ApplicationError

func (*ApplicationError) Code

func (err *ApplicationError) Code() codes.Code

func (*ApplicationError) Error

func (err *ApplicationError) Error() string

func (*ApplicationError) GRPCStatus

func (err *ApplicationError) GRPCStatus() *status.Status

type Option

type Option func(*wrapOptions)

func WithCode

func WithCode(code codes.Code) Option

Jump to

Keyboard shortcuts

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