Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCritical = errors.New("criticl error")
Functions ¶
func IsMetricViolationError ¶
IsMetricViolationError checks if given error is MetricViolation type.
func NewErrCritical ¶
NewErrCritical wraps an error and marks it as fatal.
func NewMetricViolationError ¶
NewMetricViolationError creates new metric violation error.
Types ¶
type ErrorList ¶
type ErrorList struct {
// contains filtered or unexported fields
}
ErrorList is a thread-safe error list.
func NewErrorList ¶
NewErrorList creates new error list.
func (*ErrorList) Has ¶
Has returns the first error in the list that is of the same type as the provided error. Equality is checked using `errors.Is`.
Click to show internal directories.
Click to hide internal directories.