Documentation ¶
Overview ¶
Package errorutil contains common error objects and functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertTrue ¶
AssertTrue will panic if the given condition is negative.
Types ¶
type CompositeError ¶
type CompositeError struct {
Errors []error
}
CompositeError can collect multiple errors in a single error object.
func NewCompositeError ¶
func NewCompositeError() *CompositeError
NewCompositeError creates a new composite error object.
func (*CompositeError) Error ¶
func (ce *CompositeError) Error() string
Error returns all collected errors as a string.
func (*CompositeError) HasErrors ¶
func (ce *CompositeError) HasErrors() bool
HasErrors returns true if any error have been collected.
Click to show internal directories.
Click to hide internal directories.