Set the error message and associated state
| 273 | |
| 274 | // Set the error message and associated state |
| 275 | void GCodeMachineState::SetError(const char *_ecv_array msg, int parameter) noexcept |
| 276 | { |
| 277 | if (stateMachineResult != GCodeResult::error) |
| 278 | { |
| 279 | errorMessage = GCodeException(msg, parameter); |
| 280 | stateMachineResult = GCodeResult::error; |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | void GCodeMachineState::SetError(const GCodeException& exc) noexcept |
| 285 | { |
no test coverage detected