github.com/go-task/task/v3/errors
No package summary is available.
Package
Files: 5. Third party imports: 4. Imports from organisation: 0. Tests: 0. Benchmarks: 0.
Constants
Vars
Types
MissingVar
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| Name |
|
No comment on field. |
| AllowedValues |
|
No comment on field. |
NotAllowedVar
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| Value |
|
No comment on field. |
| Enum |
|
No comment on field. |
| Name |
|
No comment on field. |
TaskCalledTooManyTimesError
TaskCalledTooManyTimesError is returned when the maximum task call limit is exceeded. This is to prevent infinite loops and cyclic dependencies.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
| MaximumTaskCall |
|
No comment on field. |
TaskCancelledByUserError
TaskCancelledByUserError is returned when the user does not accept an optional prompt to continue.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
TaskCancelledNoTerminalError
TaskCancelledNoTerminalError is returned when trying to run a task with a prompt in a non-terminal environment.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
TaskError
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.
| Field name | Field type | Comment |
|---|---|---|
| type |
|
No comment on field. |
TaskInternalError
TaskInternalError when the user attempts to invoke a task that is internal.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
TaskMissingRequiredVarsError
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
| MissingVars |
|
No comment on field. |
TaskNameConflictError
TaskNameConflictError is returned when multiple tasks with a matching name or alias are found.
| Field name | Field type | Comment |
|---|---|---|
| Call |
|
No comment on field. |
| TaskNames |
|
No comment on field. |
TaskNameFlattenConflictError
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
| Include |
|
No comment on field. |
TaskNotAllowedVarsError
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
| NotAllowedVars |
|
No comment on field. |
TaskNotFoundError
TaskNotFoundError is returned when the specified task is not found in the Taskfile.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
| DidYouMean |
|
No comment on field. |
TaskRCNotFoundError
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
| Walk |
|
No comment on field. |
TaskRunError
TaskRunError is returned when a command in a task returns a non-zero exit code.
| Field name | Field type | Comment |
|---|---|---|
| TaskName |
|
No comment on field. |
| Err |
|
No comment on field. |
TaskfileAlreadyExistsError
TaskfileAlreadyExistsError is returned on creating a Taskfile if one already exists.
TaskfileCacheNotFoundError
TaskfileCacheNotFoundError is returned when the user attempts to use an offline (cached) Taskfile but the files does not exist in the cache.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
TaskfileCycleError
TaskfileCycleError is returned when we detect that a Taskfile includes a set of Taskfiles that include each other in a cycle.
| Field name | Field type | Comment |
|---|---|---|
| Source |
|
No comment on field. |
| Destination |
|
No comment on field. |
TaskfileDecodeError
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| Message |
|
No comment on field. |
| Location |
|
No comment on field. |
| Line |
|
No comment on field. |
| Column |
|
No comment on field. |
| Tag |
|
No comment on field. |
| Snippet |
|
No comment on field. |
| Err |
|
No comment on field. |
TaskfileDoesNotMatchChecksum
TaskfileDoesNotMatchChecksum is returned when a Taskfile's checksum does not match the one pinned in the parent Taskfile.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
| ExpectedChecksum |
|
No comment on field. |
| ActualChecksum |
|
No comment on field. |
TaskfileFetchFailedError
TaskfileFetchFailedError is returned when no appropriate Taskfile is found when searching the filesystem.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
| HTTPStatusCode |
|
No comment on field. |
TaskfileInvalidError
TaskfileInvalidError is returned when the Taskfile contains syntax errors or cannot be parsed for some reason.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
| Err |
|
No comment on field. |
TaskfileNetworkTimeoutError
TaskfileNetworkTimeoutError is returned when the user attempts to use a remote Taskfile but a network connection could not be established within the timeout.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
| Timeout |
|
No comment on field. |
TaskfileNotFoundError
TaskfileNotFoundError is returned when no appropriate Taskfile is found when searching the filesystem.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
| Walk |
|
No comment on field. |
TaskfileNotSecureError
TaskfileNotSecureError is returned when the user attempts to download a remote Taskfile over an insecure connection.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
TaskfileNotTrustedError
TaskfileNotTrustedError is returned when the user does not accept the trust prompt when downloading a remote Taskfile.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
TaskfileVersionCheckError
TaskfileVersionCheckError is returned when the user attempts to run a Taskfile that does not contain a Taskfile schema version key or if they try to use a feature that is not supported by the schema version.
| Field name | Field type | Comment |
|---|---|---|
| URI |
|
No comment on field. |
| SchemaVersion |
|
No comment on field. |
| Message |
|
No comment on field. |
Functions
func As
As wraps the standard errors.As function so that we don't need to alias that package.
Uses: errors.As.func Is
Is wraps the standard errors.Is function so that we don't need to alias that package.
Uses: errors.Is.func New
New returns an error that formats as the given text. Each call to New returns a distinct error value even if the text is identical. This wraps the standard errors.New function so that we don't need to alias that package.
Uses: errors.New.func NewTaskfileDecodeError
func Unwrap
Unwrap wraps the standard errors.Unwrap function so that we don't need to alias that package.
Uses: errors.Unwrap.