MoonGen
 All Files Functions Variables Pages
error.lua
Go to the documentation of this file.
1 ---------------------------------
2 --- @file error.lua
3 --- @brief Error ...
4 --- @todo TODO docu
5 ---------------------------------
6 
7 local mod = {}
8 mod.errors = {
9  [1] = "Operation not permitted",
10  [2] = "No such file or directory",
11  [3] = "No such process",
12  [4] = "Interrupted system call",
13  [5] = "I/O error",
14  [6] = "No such device or address",
15  [7] = "Argument list too long",
16  [8] = "Exec format error",
17  [9] = "Bad file number",
18  [10] = "No child processes",
19  [11] = "Try again",
20  [12] = "Out of memory",
21  [13] = "Permission denied",
22  [14] = "Bad address",
23  [15] = "Block device required",
24  [16] = "Device or resource busy",
25  [17] = "File exists",
26  [18] = "Cross-device link",
27  [19] = "No such device",
28  [20] = "Not a directory",
29  [21] = "Is a directory",
30  [22] = "Invalid argument",
31  [23] = "File table overflow",
32  [24] = "Too many open files",
33  [25] = "Not a typewriter",
34  [26] = "Text file busy",
35  [27] = "File too large",
36  [28] = "No space left on device",
37  [29] = "Illegal seek",
38  [30] = "Read-only file system",
39  [31] = "Too many links",
40  [32] = "Broken pipe",
41  [33] = "Math argument out of domain of func",
42  [34] = "Math result not representable",
43  [35] = "Resource deadlock would occur",
44  [36] = "File name too long",
45  [37] = "No record locks available",
46  [38] = "Function not implemented",
47  [39] = "Directory not empty",
48  [40] = "Too many symbolic links encountered",
49  [42] = "No message of desired type",
50  [43] = "Identifier removed",
51  [44] = "Channel number out of range",
52  [45] = "Level 2 not synchronized",
53  [46] = "Level 3 halted",
54  [47] = "Level 3 reset",
55  [48] = "Link number out of range",
56  [49] = "Protocol driver not attached",
57  [50] = "No CSI structure available",
58  [51] = "Level 2 halted",
59  [52] = "Invalid exchange",
60  [53] = "Invalid request descriptor",
61  [54] = "Exchange full",
62  [55] = "No anode",
63  [56] = "Invalid request code",
64  [57] = "Invalid slot",
65  [59] = "Bad font file format",
66  [60] = "Device not a stream",
67  [61] = "No data available",
68  [62] = "Timer expired",
69  [63] = "Out of streams resources",
70  [64] = "Machine is not on the network",
71  [65] = "Package not installed",
72  [66] = "Object is remote",
73  [67] = "Link has been severed",
74  [68] = "Advertise error",
75  [69] = "Srmount error",
76  [70] = "Communication error on send",
77  [71] = "Protocol error",
78  [72] = "Multihop attempted",
79  [73] = "RFS specific error",
80  [74] = "Not a data message",
81  [75] = "Value too large for defined data type",
82  [76] = "Name not unique on network",
83  [77] = "File descriptor in bad state",
84  [78] = "Remote address changed",
85  [79] = "Can not access a needed shared library",
86  [80] = "Accessing a corrupted shared library",
87  [81] = ".lib section in a.out corrupted",
88  [82] = "Attempting to link in too many shared libraries",
89  [83] = "Cannot exec a shared library directly",
90  [84] = "Illegal byte sequence",
91  [85] = "Interrupted system call should be restarted",
92  [86] = "Streams pipe error",
93  [87] = "Too many users",
94  [88] = "Socket operation on non-socket",
95  [89] = "Destination address required",
96  [90] = "Message too long",
97  [91] = "Protocol wrong type for socket",
98  [92] = "Protocol not available",
99  [93] = "Protocol not supported",
100  [94] = "Socket type not supported",
101  [95] = "Operation not supported on transport endpoint",
102  [96] = "Protocol family not supported",
103  [97] = "Address family not supported by protocol",
104  [98] = "Address already in use",
105  [99] = "Cannot assign requested address",
106  [100] = "Network is down",
107  [101] = "Network is unreachable",
108  [102] = "Network dropped connection because of reset",
109  [103] = "Software caused connection abort",
110  [104] = "Connection reset by peer",
111  [105] = "No buffer space available",
112  [106] = "Transport endpoint is already connected",
113  [107] = "Transport endpoint is not connected",
114  [108] = "Cannot send after transport endpoint shutdown",
115  [109] = "Too many references: cannot splice",
116  [110] = "Connection timed out",
117  [111] = "Connection refused",
118  [112] = "Host is down",
119  [113] = "No route to host",
120  [114] = "Operation already in progress",
121  [115] = "Operation now in progress",
122  [116] = "Stale file handle",
123  [117] = "Structure needs cleaning",
124  [118] = "Not a XENIX named type file",
125  [119] = "No XENIX semaphores available",
126  [120] = "Is a named type file",
127  [121] = "Remote I/O error",
128  [122] = "Quota exceeded",
129  [123] = "No medium found",
130  [124] = "Wrong medium type",
131  [125] = "Operation Canceled",
132  [126] = "Required key not available",
133  [127] = "Key has expired",
134  [128] = "Key has been revoked",
135  [129] = "Key was rejected by service",
136  [130] = "Owner died",
137  [131] = "State not recoverable",
138  [132] = "Operation not possible due to RF-kill",
139  [133] = "Memory page has hardware error"
140 }
141 
142 function mod.getstr(n)
143  return "Code " .. tostring(n) .. ": " .. mod.errors[n] or ("Unknown error: " .. tostring(n))
144 end
145 
146 return mod
local mod
high-level dpdk wrapper
Definition: dpdk.lua:6
n
Create a new array of memory buffers (initialized to nil).
Definition: memory.lua:76