failNextCall property

bool failNextCall
getter/setter pair

Set to true to make the next mutating call fail (return a non-zero status), then automatically reset to false — for testing error handling paths (lastError, etc.) without needing real hardware to misbehave.

Implementation

bool failNextCall = false;