Documentation ¶
Index ¶
- Variables
- func NewApplicationError(err error, msg string, args ...interface{}) error
- func NewCriticalError(err error, msg string, args ...interface{}) error
- func NewHTTPStatusCodeError(req *http.Request, resp *http.Response, wantStatusCode int) error
- func NewSimpleApplicationError(msg string, args ...interface{}) error
- func NewSimpleCriticalError(msg string, args ...interface{}) error
- func NewTemporaryError(err error, msg string, args ...interface{}) error
- func NewTimeoutError(err error, msg string, args ...interface{}) error
- func NewWrapError(err error, msg string, args ...interface{}) error
- type BenchErrors
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SystemErrs = NewBenchErrors() InitializeErrs = NewBenchErrors() PreTestErrs = NewBenchErrors() BenchmarkErrs = NewBenchErrors() FinalCheckErrs = NewBenchErrors() )
Functions ¶
func NewApplicationError ¶
func NewCriticalError ¶
func NewHTTPStatusCodeError ¶
func NewSimpleCriticalError ¶
func NewTemporaryError ¶
func NewTimeoutError ¶
func NewWrapError ¶
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) Penalty ¶
func (errs *BenchErrors) Penalty() int64
Click to show internal directories.
Click to hide internal directories.