errors

package
v0.0.0-...-8b40e06 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAutoreject     = errors.New("unable to match constraints")
	ErrModuleName     = errors.New("invalid module name")
	ErrParse          = errors.New("unable to parse module")
	ErrCompile        = errors.New("unable to compile modules")
	ErrModulePrefix   = errors.New("invalid module prefix")
	ErrPathInvalid    = errors.New("invalid data path")
	ErrPathConflict   = errors.New("conflicting path")
	ErrWrite          = errors.New("error writing data")
	ErrRead           = errors.New("error reading data")
	ErrTransaction    = errors.New("error committing data")
	ErrCreatingDriver = errors.New("error creating Driver")

	ErrInvalidConstraintTemplate = errors.New("invalid ConstraintTemplate")
	ErrMissingConstraintTemplate = errors.New("missing ConstraintTemplate")
	ErrInvalidModule             = errors.New("invalid module")
	ErrChangeTargets             = errors.New("ConstraintTemplates with Constraints may not change targets")
	ErrNoDriver                  = errors.New("No language driver is installed that handles this constraint template")
)

Functions

This section is empty.

Types

type ErrorMap

type ErrorMap map[string]error

ErrorMap is a map from targets to the error the target returned.

func (*ErrorMap) Add

func (e *ErrorMap) Add(key string, err error)

func (*ErrorMap) Error

func (e *ErrorMap) Error() string

Error implements error.

Uses a pointer receiver to avoid potential errors.Is() bugs.

func (*ErrorMap) Is

func (e *ErrorMap) Is(target error) bool

Jump to

Keyboard shortcuts

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