MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / error_to_string

Function error_to_string

TactilityKernel/source/error.cpp:6–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4extern "C" {
5
6const char* error_to_string(error_t error) {
7 switch (error) {
8 case ERROR_NONE:
9 return "no error";
10 case ERROR_UNDEFINED:
11 return "undefined";
12 case ERROR_INVALID_STATE:
13 return "invalid state";
14 case ERROR_INVALID_ARGUMENT:
15 return "invalid argument";
16 case ERROR_MISSING_PARAMETER:
17 return "missing parameter";
18 case ERROR_NOT_FOUND:
19 return "not found";
20 case ERROR_ISR_STATUS:
21 return "ISR status";
22 case ERROR_RESOURCE:
23 return "resource";
24 case ERROR_TIMEOUT:
25 return "timeout";
26 case ERROR_OUT_OF_MEMORY:
27 return "out of memory";
28 case ERROR_NOT_SUPPORTED:
29 return "not supported";
30 case ERROR_NOT_ALLOWED:
31 return "not allowed";
32 case ERROR_BUFFER_OVERFLOW:
33 return "buffer overflow";
34 default:
35 return "unknown";
36 }
37}
38
39}

Callers 8

headphoneDetectCallbackFunction · 0.85
initSoundFunction · 0.85
initMicrophoneFunction · 0.85
initSoundFunction · 0.85
initMicrophoneFunction · 0.85
device_construct_addFunction · 0.85
threadMainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected