common

package
v0.0.0-...-a12d374 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissedArgument        = errors.New("missed argument")
	ErrInvalidArgument       = errors.New("invalid argument")
	ErrInvalidArgumentNumber = errors.New("invalid argument number")
	ErrInvalidType           = errors.New("invalid type")
	ErrInvalidOperation      = errors.New("invalid operation")
	ErrNotFound              = errors.New("not found")
	ErrNotUnique             = errors.New("not unique")
	ErrTerminated            = errors.New("operation is terminated")
	ErrUnexpected            = errors.New("unexpected error")
	ErrTimeout               = errors.New("operation timed out")
	ErrNotImplemented        = errors.New("not implemented")
)

Functions

func Error

func Error(err error, msg string) error

func Errorf

func Errorf(err error, format string, args ...interface{}) error

func Errors

func Errors(err ...error) error

Types

type AggregatedError

type AggregatedError struct {
	// contains filtered or unexported fields
}

func NewAggregatedError

func NewAggregatedError(errs []error) AggregatedError

func (AggregatedError) Error

func (e AggregatedError) Error() string

func (AggregatedError) Errors

func (e AggregatedError) Errors() []error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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