-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokens_error_codes.go
More file actions
45 lines (36 loc) · 1.27 KB
/
Copy pathtokens_error_codes.go
File metadata and controls
45 lines (36 loc) · 1.27 KB
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
// Code generated by 'gen-errors'; DO NOT EDIT
package klev
const (
ErrTokenACLItemLimitedCode = "token-acl-item-limited"
ErrTokenACLNotAllowedCode = "token-acl-not-allowed"
ErrTokenAuthInvalidCode = "token-auth-invalid"
ErrTokenAuthInvalidFormatCode = "token-auth-invalid-format"
ErrTokenAuthInvalidIDCode = "token-auth-invalid-id"
ErrTokenCountLimitedCode = "token-count-limited"
ErrTokenMetadataLimitedCode = "token-metadata-limited"
ErrTokenNotFoundCode = "token-not-found"
)
func IsErrTokenACLItemLimited(err error) bool {
return IsError(err, ErrTokenACLItemLimitedCode)
}
func IsErrTokenACLNotAllowed(err error) bool {
return IsError(err, ErrTokenACLNotAllowedCode)
}
func IsErrTokenAuthInvalid(err error) bool {
return IsError(err, ErrTokenAuthInvalidCode)
}
func IsErrTokenAuthInvalidFormat(err error) bool {
return IsError(err, ErrTokenAuthInvalidFormatCode)
}
func IsErrTokenAuthInvalidID(err error) bool {
return IsError(err, ErrTokenAuthInvalidIDCode)
}
func IsErrTokenCountLimited(err error) bool {
return IsError(err, ErrTokenCountLimitedCode)
}
func IsErrTokenMetadataLimited(err error) bool {
return IsError(err, ErrTokenMetadataLimitedCode)
}
func IsErrTokenNotFound(err error) bool {
return IsError(err, ErrTokenNotFoundCode)
}