-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.go
More file actions
29 lines (20 loc) · 853 Bytes
/
Copy patherror.go
File metadata and controls
29 lines (20 loc) · 853 Bytes
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 batchflow
import "errors"
var (
// ErrEmptyRequest 空请求错误
ErrEmptyRequest = errors.New("empty request")
// ErrContextCanceled 上下文被取消错误
ErrContextCanceled = errors.New("context canceled")
// ErrInvalidSchema 无效的 schema 错误
ErrInvalidSchema = errors.New("invalid schema")
// ErrMissingColumn 缺少列错误
ErrMissingColumn = errors.New("missing required column")
// ErrInvalidColumnType 无效的列类型错误
ErrInvalidColumnType = errors.New("invalid column type")
// ErrEmptyBatch 空批次错误
ErrEmptyBatch = errors.New("empty batch")
// ErrEmptySchemaName 空表名错误
ErrEmptySchemaName = errors.New("empty schema name")
// ErrBackpressure 表示队列达到反压阈值且策略拒绝或等待超时
ErrBackpressure = errors.New("batchflow backpressure limit reached")
)