mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
Date:2008-09-25T16:19:15.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@44 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
16 lines
906 B
Plaintext
16 lines
906 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|<br/>
|
|
[[8 Design by Contract (tm), Assertions and Exceptions|Reference of exceptions]] }}
|
|
|
|
|
|
|
|
|