-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrno.go
46 lines (43 loc) · 1.02 KB
/
errno.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package aquestalk
import "fmt"
type errno int
func (nr errno) Error() string {
switch nr {
case 100:
return "misc error (error code: 100)"
case 101:
return "out of memory"
case 102:
return "undefined reading symbols (error code: 102)"
case 103:
return "negative prosody data"
case 104:
return "undefined delimiters"
case 105:
return "undefined reading symbols (error code: 105)"
case 106:
return "illegal tags"
case 107:
return "too long tags"
case 108:
return "invalid tag values"
case 109:
return "failed to play wave (error code: 109)"
case 110:
return "failed to play wave (error code: 110)"
case 111:
return "no sound data to play"
case 200:
return "too long phonetic string (error code: 200)"
case 201:
return "too many reading symbols in a phrase"
case 202:
return "too long phonetic string (error code: 202)"
case 203:
return "heap memory exhaust"
case 204:
return "too long phonetic string (error code: 204)"
default:
return fmt.Sprintf("undefined error code: %d", nr)
}
}