Files
eiffel-org/documentation/current/eiffelstudio/eiffelstudio-how-tos/running-and-debugging/handling-exceptions.wiki
jfiat 4087eb614e Author:admin
Date:2008-09-19T07:55:09.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@27 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
2008-09-19 10:22:25 +00:00

16 lines
923 B
Plaintext

[[Property:title|Handling exceptions]]
[[Property:weight|4]]
[[Property:uuid|43ce73b9-3ac4-4f71-34a3-f359a66d9082]]
It is possible to raise and catch exceptions in Eiffel. Catching exceptions is done by using the rescue keyword. The [[ref:/libraries/base/reference/exceptions_chart|EXCEPTIONS]] class provides helper features to analyze the caught exception and handle it.
The <eiffel>[[ref:/libraries/base/reference/exceptions_chart|EXCEPTIONS]] </eiffel> class also provides ways to raise exception, via its feature [[ref:libraries/base/reference/exceptions_flatshort|raise]] .
When an exception is raised while the application is being debugged, the application stops immediately and the debugger displays the context in which the exception occurred, whether or not the exception is rescued.
{{seealso| '''See Also''': <br/>
[[8 Design by Contract (tm), Assertions and Exceptions|Reference of exceptions]] }}