-
Notifications
You must be signed in to change notification settings - Fork 3
/
error.go
71 lines (49 loc) · 1.17 KB
/
error.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package influxqu
type UnSupportedType struct{}
func (e *UnSupportedType) Error() string {
return "unsupported type"
}
type DuplicatedMeasurement struct{}
func (e *DuplicatedMeasurement) Error() string {
return "duplicated measurement"
}
type DuplicatedTimestamp struct{}
func (e *DuplicatedTimestamp) Error() string {
return "duplicated timestamp"
}
type DuplicatedTag struct {
tag string
}
func (e *DuplicatedTag) Error() string {
return "duplicated tag " + e.tag
}
type DuplicatedField struct {
field string
}
func (e *DuplicatedField) Error() string {
return "duplicated field " + e.field
}
type NoTagName struct{}
func (e *NoTagName) Error() string {
return "no tag name"
}
type NoFieldName struct{}
func (e *NoFieldName) Error() string {
return "no field name"
}
type DuplicatedKey struct{}
func (e *DuplicatedKey) Error() string {
return "duplicated key"
}
type UnSupportedTag struct{}
func (e *UnSupportedTag) Error() string {
return "unsupported tag"
}
type NoValidMeasurement struct{}
func (e *NoValidMeasurement) Error() string {
return "no valid measurement"
}
type NoValidField struct{}
func (e *NoValidField) Error() string {
return "no valid field"
}