errdefs

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 6

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