Repository navigation
Expand file tree
/
Copy patherrors.go
More file actions
29 lines (26 loc) · 1.46 KB
/
Copy patherrors.go
File metadata and controls
29 lines (26 loc) · 1.46 KB
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
29
package tako
import "tako.sh/internal"
// Rejections a Tako app may need to branch on. Match them with errors.Is: a
// *ServerError whose Code names one of them reports true. Rejections without
// a code match none of them.
var (
// ErrRunNotOwned: a worker write named a run this attempt no longer owns.
ErrRunNotOwned = internal.ErrRunNotOwned
// ErrRunIDConflict: an enqueue ID belongs to a different workflow or payload.
ErrRunIDConflict = internal.ErrRunIDConflict
// ErrInvalidRequest: the request or its arguments are malformed; retrying cannot succeed.
ErrInvalidRequest = internal.ErrInvalidRequest
// ErrChannelUnknown: the channel is not defined by this build or by the recipient app.
ErrChannelUnknown = internal.ErrChannelUnknown
// ErrChannelParamsInvalid: channel params are malformed or fail the channel's params schema.
ErrChannelParamsInvalid = internal.ErrChannelParamsInvalid
// ErrChannelClosed: the channel stream was closed and accepts no more messages.
ErrChannelClosed = internal.ErrChannelClosed
// ErrSignalInboxFull: a workflow run's signal inbox is full; the signal was not stored.
ErrSignalInboxFull = internal.ErrSignalInboxFull
// ErrUnavailable: the server is draining, overloaded, or its storage is unreachable; retry later.
ErrUnavailable = internal.ErrUnavailable
)
// ServerError is a request the Tako server rejected. Its Code is the
// machine-readable reason, or empty when the server sent none.
type ServerError = internal.ServerError