This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
forked from grezar/go-circleci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
28 lines (25 loc) · 1.81 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package circleci
import "errors"
var (
ErrUnauthorized = errors.New("unauthorized")
ErrNotFound = errors.New("not found")
ErrRequiredEitherOrganizationIDOrSlug = errors.New("either organization ID or slug is required")
ErrRequiredContextID = errors.New("context ID is required")
ErrRequiredEnvironmentVariableName = errors.New("environment variable name is required")
ErrRequiredEnvironmentVariableValue = errors.New("missing environment variable value")
ErrRequiredProjectSlug = errors.New("project slug is required")
ErrRequiredProjectCheckoutKeyType = errors.New("project checkout key type is required")
ErrRequiredProjectCheckoutKeyFingerprint = errors.New("project checkout key fingerprint is required")
ErrRequiredProjectVariableName = errors.New("project variable name is required")
ErrRequiredProjectVariableValue = errors.New("project variable value is required")
ErrRequiredUserID = errors.New("user id is required")
ErrRequiredWorkflowID = errors.New("workflow id is required")
ErrRequiredApprovalRequestID = errors.New("approval request id (the id of the job being approved) is required")
ErrRequiredPipelineContinuationKey = errors.New("pipeline continuation key is required")
ErrRequiredPipelineConfiguration = errors.New("pipeline configuration is required")
ErrRequiredPipelinePipelineID = errors.New("pipeline ID is required")
ErrRequiredPipelineNumber = errors.New("pipeline number is required")
ErrRequiredJobNumber = errors.New("job number is required")
ErrRequiredWorkflowName = errors.New("workflow name is required")
ErrRequiredJobName = errors.New("job name is required")
)