package errdefs

import "github.com/moby/buildkit/frontend/gateway/errdefs"

Index

Constants

const (
	// UnknownExitStatus might be returned in (*ExitError).ExitCode via
	// ContainerProcess.Wait.  This can happen if the process never starts
	// or if an error was encountered when obtaining the exit status, it is set to 255.
	//
	// This const is defined here to prevent importing github.com/containerd/containerd
	// and corresponds with https://github.com/containerd/containerd/blob/40b22ef0741028917761d8c5d5d29e0d19038836/task.go#L52-L55
	UnknownExitStatus = 255
)

Types

type ExitError

type ExitError struct {
	ExitCode uint32
	Err      error
}

ExitError will be returned when the container process exits with a non-zero exit code.

func (*ExitError) Error

func (err *ExitError) Error() string

func (*ExitError) Unwrap

func (err *ExitError) Unwrap() error

Source Files

exit.go

Version
v0.9.3
Published
Nov 18, 2021
Platform
js/wasm
Imports
1 packages
Last checked
12 hours ago

Tools for package owners.