Help us shape the future of Go! Take the 2026 Go Developer Survey

errdefs

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithExecError

func WithExecError(err error, inputs, mounts []solver.Result) error

func WithExecErrorWithContext added in v0.9.0

func WithExecErrorWithContext(ctx context.Context, err error, inputs, mounts []solver.Result) error

func WithFileActionError

func WithFileActionError(err error, idx int) error

Types

type ExecError

type ExecError struct {
	Inputs        []solver.Result
	Mounts        []solver.Result
	OwnerBorrowed bool
	// contains filtered or unexported fields
}

ExecError will be returned when an error is encountered when evaluating an op.

func (*ExecError) EachRef

func (e *ExecError) EachRef(fn func(solver.Result) error) (err error)

func (*ExecError) Release

func (e *ExecError) Release() error

func (*ExecError) Unwrap

func (e *ExecError) Unwrap() error

type FileActionError

type FileActionError struct {
	Index int
	// contains filtered or unexported fields
}

FileActionError will be returned when an error is encountered when solving a fileop.

func (*FileActionError) ToSubject

func (e *FileActionError) ToSubject() serrdefs.IsSolve_Subject

func (*FileActionError) Unwrap

func (e *FileActionError) Unwrap() error

Jump to

Keyboard shortcuts

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