From 0d6954fc2266d3e78e6acfdc62e6140a2fda988e Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Wed, 17 Apr 2019 14:03:36 +0000 Subject: [PATCH] Updated wikipage Managing CTRL+C in console application. (Signed-off-by:tioui). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2145 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../Tutorials/Mini-HowTo/Managing-CTRL-C-on-console.wiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/18.11/eiffel/Tutorials/Mini-HowTo/Managing-CTRL-C-on-console.wiki b/documentation/18.11/eiffel/Tutorials/Mini-HowTo/Managing-CTRL-C-on-console.wiki index c7b452b6..791adb27 100644 --- a/documentation/18.11/eiffel/Tutorials/Mini-HowTo/Managing-CTRL-C-on-console.wiki +++ b/documentation/18.11/eiffel/Tutorials/Mini-HowTo/Managing-CTRL-C-on-console.wiki @@ -1,11 +1,11 @@ -[[Property:modification_date|Wed, 17 Apr 2019 14:03:09 GMT]] +[[Property:modification_date|Wed, 17 Apr 2019 14:03:36 GMT]] [[Property:publication_date|Wed, 17 Apr 2019 14:02:25 GMT]] [[Property:uuid|5CA34C5D-30F1-4D6F-9FE4-B555E541EA8C]] [[Property:weight|4000]] [[Property:title|Managing CTRL+C in console application]] Normally, if the user uses the CTRL+C keys, the Eiffel application detect it as an error and throw an exception of type OPERATING_SYSTEM_SIGNAL_FAILURE. -To manage the CTRL+C keys, you can use a rescue clause to detect the exception and a retry mechanism to cancel the exception handeling done by the Eiffel runtime. +To manage the CTRL+C keys, you can use a rescue clause to detect the exception and a retry mechanism to cancel the exception handling done by the Eiffel runtime. To detect the exception, you can inherit from the EXCEPTIONS class and use an attachment test on Exception_manager.last_exception.