bencherror

package
v0.0.0-...-f1a69a6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SystemErrs     = NewBenchErrors()
	InitializeErrs = NewBenchErrors()
	PreTestErrs    = NewBenchErrors()
	BenchmarkErrs  = NewBenchErrors()
	FinalCheckErrs = NewBenchErrors()
)

Functions

func NewApplicationError

func NewApplicationError(err error, msg string, args ...interface{}) error

func NewCriticalError

func NewCriticalError(err error, msg string, args ...interface{}) error

func NewHTTPStatusCodeError

func NewHTTPStatusCodeError(req *http.Request, resp *http.Response, wantStatusCode int) error

func NewSimpleApplicationError

func NewSimpleApplicationError(msg string, args ...interface{}) error

func NewSimpleCriticalError

func NewSimpleCriticalError(msg string, args ...interface{}) error

func NewTemporaryError

func NewTemporaryError(err error, msg string, args ...interface{}) error

func NewTimeoutError

func NewTimeoutError(err error, msg string, args ...interface{}) error

func NewWrapError

func NewWrapError(err error, msg string, args ...interface{}) error

NewWrapError は、指定エラーのcodeを引き継いで、メッセージをラッピングします

Types

type BenchErrors

type BenchErrors struct {
	Msgs         []string
	InternalMsgs []string
	// contains filtered or unexported fields
}

func NewBenchErrors

func NewBenchErrors() *BenchErrors

func (*BenchErrors) AddError

func (errs *BenchErrors) AddError(err error) error

func (*BenchErrors) DumpCounters

func (errs *BenchErrors) DumpCounters()

func (*BenchErrors) IsError

func (errs *BenchErrors) IsError() bool

IsError は、エラーが発生したか否かを返します

func (*BenchErrors) IsFailure

func (errs *BenchErrors) IsFailure() bool

IsFailure は失格したか否かを返します

func (*BenchErrors) Penalty

func (errs *BenchErrors) Penalty() int64

Jump to

Keyboard shortcuts

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