From 452c599a4d8ac8a6e4dd7b865a9a8d9a7c65ca99 Mon Sep 17 00:00:00 2001 From: Dawn Rose <63545980+tastethedream@users.noreply.github.com> Date: Mon, 5 Dec 2022 16:21:50 +0000 Subject: [PATCH] Update ex3-6.md Code changed to refelect QC2 section 2.6 --- ch03/ex3-6.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ch03/ex3-6.md b/ch03/ex3-6.md index 3245171..0f16efc 100644 --- a/ch03/ex3-6.md +++ b/ch03/ex3-6.md @@ -10,8 +10,11 @@ void main(){ print ('Name: $name'); // The following line generates a RangeError name.indexOf(name[0], name.length - (name.length+2)); - } catch (exception) { - print ('Exception: $exception'); + } on RangeError catch (exception) { + print ('On Exception: $exception'); + } + catch (exception) { + print ('Catch Exception: $exception'); } finally { print ('Mission completed!'); }