diff --git a/src/content/resources/dart-cheatsheet.md b/src/content/resources/dart-cheatsheet.md index 64c387cb28..498d19ee8d 100644 --- a/src/content/resources/dart-cheatsheet.md +++ b/src/content/resources/dart-cheatsheet.md @@ -1271,13 +1271,7 @@ abstract class Logger { void tryFunction(VoidFunction untrustworthy, Logger logger) { try { untrustworthy(); - } on ExceptionWithMessage catch (e) { - logger.logException(e.runtimeType, e.message); - } on Exception catch (e) { - logger.logException(e.runtimeType); - } finally { - logger.doneLogging(); - } + } // Write your logic here } // Tests your solution (Don't edit!):