trace

package
v0.0.0-...-78a9764 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmpty      = errors.New("err Empty restult")
	ErrCaptcha    = errors.New("err Amazon requested captcha, try with another IP")
	ErrParameter  = errors.New("err not correct parameters")
	ErrMaxAttempt = errors.New("err Max attemps")
	ErrStatusCode = errors.New("err Not a correct status code")
)

Functions

func GetMainErr

func GetMainErr(err error) error

Types

type ErrorData

type ErrorData struct {
	PackageName string
	FuncName    string
	Step        int
	Description string `json:"Description,omitempty"`
	Err         error  `json:"-"`
	ErrString   string `json:"Err,omitempty"`
}

type Traceback

type Traceback struct {
	MainErr ErrorData
	Trace   []ErrorData
}

func NewOrAdd

func NewOrAdd(step int, pkgName, funName string, err error, desc string) Traceback

func (Traceback) Error

func (tb Traceback) Error() string

func (Traceback) MainError

func (tracebak Traceback) MainError() error

Jump to

Keyboard shortcuts

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