errs

package
v0.0.0-...-c188a41 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERRCODE_COMMON = iota + 500
	ERRCODE_REMOTE_CALL
	ERRCODE_BROKER
	ERRCODE_REGISTRY
	ERRCODE_CONFIG
	ERRCODE_GATEWAY

	ERRCODE_NO_TOKEN
)
View Source
const ERRMSG_UNKNOWN = "unknown error"

Variables

This section is empty.

Functions

func New

func New(code int, msg string) error

func NewInternal

func NewInternal(msg string) error

func NewRpcError

func NewRpcError(code int, msg string) error

func Wrap

func Wrap(code int, msg string, err error) error

func WrapInternal

func WrapInternal(msg string, err error) error

Types

type MicroError

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

func (MicroError) Code

func (e MicroError) Code() int

func (MicroError) Error

func (e MicroError) Error() string

func (MicroError) StackTrace

func (e MicroError) StackTrace() errors.StackTrace

Jump to

Keyboard shortcuts

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