MCPcopy Create free account
hub / github.com/SpacehuhnTech/SimpleCLI / getMessage

Method getMessage

src/CommandError.cpp:129–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129String CommandError::getMessage() const {
130 if (errorPointer) {
131 switch (errorPointer->mode) {
132 case CMD_NULL_PTR: return String(F("NULL Pointer"));
133 case CMD_EMPTY_LINE: return String(F("Empty input"));
134 case CMD_PARSE_SUCCESS: return String(F("No error"));
135 case CMD_NOT_FOUND: return String(F("Command not found"));
136 case CMD_UNKOWN_ARG: return String(F("Unknown argument"));
137 case CMD_MISSING_ARG: return String(F("Missing argument"));
138 case CMD_MISSING_ARG_VALUE: return String(F("Missing argument value"));
139 case CMD_UNCLOSED_QUOTE: return String(F("Unclosed quote"));
140 }
141 }
142 return String();
143}
144
145Command CommandError::getCmd() const {
146 return getCommand();

Callers

nothing calls this directly

Calls 1

FFunction · 0.85

Tested by

no test coverage detected