errors

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package errors

Package errors

Package errors

Package errors

Index

Constants

View Source
const (
	TraceSIZE = 1 << 20
)

Variables

This section is empty.

Functions

func Panic added in v1.1.0

func Panic(s string)

Types

type Errors

type Errors interface {
	Error() string
	ID() string
	GetTrace() string
	HasError() bool
	HasRecover() bool
}

type FushinError added in v1.1.0

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

FushinError 包含goroutineID的可追溯错误

func New added in v1.1.0

func New(s string) FushinError

func Recover added in v1.1.0

func Recover(recover interface{}) FushinError

Recover must pass a recover func 当Recover一个FushinError时不保留堆栈信息 只记录goroutine id

func (*FushinError) Error added in v1.1.0

func (f *FushinError) Error() string

func (*FushinError) GID added in v1.1.0

func (f *FushinError) GID() string

GID 返回recover堆栈的goroutine id

func (*FushinError) GetTrace added in v1.1.0

func (f *FushinError) GetTrace() string

GetTrace 获取stack堆栈

func (*FushinError) HasError added in v1.1.0

func (f *FushinError) HasError() bool

HasError 是否有错误

func (*FushinError) HasRecover added in v1.1.0

func (f *FushinError) HasRecover() bool

func (*FushinError) ID added in v1.1.0

func (f *FushinError) ID() string

ID 获取错误的uuid

Jump to

Keyboard shortcuts

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