-
Notifications
You must be signed in to change notification settings - Fork 4
/
errors.go
23 lines (21 loc) · 982 Bytes
/
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
package consts
import "errors"
// Errors
var (
ErrInvalidPrim = errors.New("invalid prim")
ErrInvalidArgsCount = errors.New("invalid args count")
ErrUnknownPrim = errors.New("unknown prim")
ErrInvalidJSON = errors.New("invalid JSON")
ErrTreesAreDifferent = errors.New("trees of type and value are different")
ErrEmptyPrim = errors.New("empty primitive")
ErrEmptyUnforgingData = errors.New("unforging data length is 0")
ErrInvalidType = errors.New("invalid type")
ErrJSONDataIsAbsent = errors.New("JSON data is absent")
ErrValidation = errors.New("validation error")
ErrTypeIsNotComparable = errors.New("type is not comparable")
ErrTreeIsNotSettled = errors.New("tree is not settled")
ErrInvalidAddress = errors.New("invalid address")
ErrInvalidOPGHash = errors.New("invalid OPG hash")
ErrUnknownPointer = errors.New("can't find ptr")
ErrEmptyTree = errors.New("empty tree")
)