MCPcopy
hub / github.com/go-task/task / TaskError

Interface TaskError

errors/errors.go:47–50  ·  view source on GitHub ↗

TaskError extends the standard error interface with a Code method. This code will be used as the exit code of the program which allows the user to distinguish between different types of errors.

Source from the content-addressed store, hash-verified

45// be used as the exit code of the program which allows the user to distinguish
46// between different types of errors.
47type TaskError interface {
48 error
49 Code() int
50}
51
52// New returns an error that formats as the given text. Each call to New returns
53// a distinct error value even if the text is identical. This wraps the standard

Callers 1

mainFunction · 0.65

Implementers 15

TaskRCNotFoundErrorerrors/errors_taskrc.go
TaskfileDecodeErrorerrors/error_taskfile_decode.go
TaskfileNotFoundErrorerrors/errors_taskfile.go
TaskfileAlreadyExistsErrorerrors/errors_taskfile.go
TaskfileInvalidErrorerrors/errors_taskfile.go
TaskfileFetchFailedErrorerrors/errors_taskfile.go
TaskfileNotTrustedErrorerrors/errors_taskfile.go
TaskfileNotSecureErrorerrors/errors_taskfile.go
TaskfileCacheNotFoundErrorerrors/errors_taskfile.go
TaskfileVersionCheckErrorerrors/errors_taskfile.go
TaskfileNetworkTimeoutErrorerrors/errors_taskfile.go
TaskfileCycleErrorerrors/errors_taskfile.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…