static void assertWith(bool condition, String errorMsg) { if (!condition) { try { throw Exception(errorMsg); } catch (e, stack) { report(e: e, stack: stack); rethrow; } } }