...
1 package lderrors
2
3
4
5
6
7 type ErrAttributeEmpty struct{}
8
9
10
11
12
13 type ErrAttributeExtraSlash struct{}
14
15
16
17
18
19 type ErrAttributeInvalidEscape struct{}
20
21 const (
22 msgAttributeEmpty = "attribute reference cannot be empty"
23 msgAttributeExtraSlash = "attribute reference contained a double slash or a trailing slash"
24 msgAttributeInvalidEscape = "attribute reference contained an escape character (~) that was not followed by 0 or 1"
25 )
26
27 func (e ErrAttributeEmpty) Error() string { return msgAttributeEmpty }
28 func (e ErrAttributeExtraSlash) Error() string { return msgAttributeExtraSlash }
29 func (e ErrAttributeInvalidEscape) Error() string { return msgAttributeInvalidEscape }
30
View as plain text