1class MachineError(Exception): 2 """ 3 Exception that indicates an error that is NOT the user's fault, 4 i.e. something went wrong without the test being necessarily invalid, 5 such as failing OCR. 6 7 To make it easier to spot, this exception (and its subclasses) 8 get a `!!!` prefix in the log output. 9 """ 10 11 12class RequestedAssertionFailed(AssertionError): 13 """ 14 Special assertion that gets thrown on an assertion error, 15 e.g. a failing `t.assertEqual(...)` or `machine.succeed(...)`. 16 17 This gets special treatment in error reporting: i.e. it gets 18 `!!!` as prefix just as `MachineError`, but only stack frames coming 19 from `testScript` will show up in logs. 20 """