From d580db29664c509d625ff03eff0ddc7efccad5fa Mon Sep 17 00:00:00 2001 From: Sanskar Suryavanshi Date: Wed, 18 Dec 2024 20:41:13 +0530 Subject: [PATCH] removed the code already written for exception exercice --- src/content/resources/dart-cheatsheet.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/content/resources/dart-cheatsheet.md b/src/content/resources/dart-cheatsheet.md index 64c387cb28..c3b97db0a5 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 from here } // Tests your solution (Don't edit!):