Skip to content

Commit

Permalink
removed the code already written for exception exercice
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanskar Suryavanshi authored and Sanskar Suryavanshi committed Dec 18, 2024
1 parent b37c437 commit d580db2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/content/resources/dart-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!):
Expand Down

0 comments on commit d580db2

Please sign in to comment.