asClueCatching
Catch anything and rethrow, but prepend the receiver's toString(). This toString is evaluated lazily, meaning that it should reflect its state at the time of the exception (possibly excluding weirdness caused by concurrency).
This is basically the same as just using Kotest's __.asClue { ... }
, except that asClue
only catches assertion errors from inside Kotest.