-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.go
29 lines (22 loc) · 1.08 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
package decoder
import "errors"
var (
ErrDecoderNotFound = errors.New("decoder not found")
ErrEmptyNode = errors.New("provided node is empty")
ErrModNoArgs = errors.New("empty arguments list")
ErrModPoorArgs = errors.New("arguments list in modifier is too small")
ErrCbPoorArgs = errors.New("arguments list in callback is too small")
ErrGetterPoorArgs = errors.New("arguments list in getter callback is too small")
ErrUnbalancedCtl = errors.New("unbalanced control structures found")
ErrUnexpectedClose = errors.New("unexpected close bracket")
ErrWrongLoopLim = errors.New("wrong count loop limit argument")
ErrWrongLoopCond = errors.New("wrong loop condition operation")
ErrWrongLoopOp = errors.New("wrong loop operation")
ErrBreakLoop = errors.New("break loop")
ErrLBreakLoop = errors.New("lazybreak loop")
ErrContLoop = errors.New("continue loop")
ErrSenselessCond = errors.New("comparison of two static args")
ErrCondHlpNotFound = errors.New("condition helper not found")
ErrUnknownPool = errors.New("unknown pool")
_ = ErrCbPoorArgs
)