about summary refs log tree commit diff
path: root/pkg/lang/vm/text/errors.go
blob: a734a6136b8342d1895ed70b1400a251eeb3843e (plain)
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
package text

type ErrInvalidValue struct {
	Value string
}

func (e ErrInvalidValue) Error() string {
	return "invalid value: " + e.Value
}

type ErrDuplicateLabel struct {
	Label string
}

func (e ErrDuplicateLabel) Error() string {
	return "duplicate label: " + e.Label
}

type ErrUnkonwnLabel struct {
	Label string
}

func (e ErrUnkonwnLabel) Error() string {
	return "unknown label: " + e.Label
}

type ErrUnknownOp struct {
	Op string
}

func (e ErrUnknownOp) Error() string {
	return "unknown op: " + e.Op
}