MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / SetError

Method SetError

src/GCodes/GCodeMachineState.cpp:275–282  ·  view source on GitHub ↗

Set the error message and associated state

Source from the content-addressed store, hash-verified

273
274// Set the error message and associated state
275void 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
284void GCodeMachineState::SetError(const GCodeException& exc) noexcept
285{

Callers 4

RunStateMachineMethod · 0.80
THROWSFunction · 0.80
CheckIfMoreTapsNeededMethod · 0.80
THROWSFunction · 0.80

Calls 1

GCodeExceptionClass · 0.70

Tested by

no test coverage detected