-
Notifications
You must be signed in to change notification settings - Fork 27
drawbacks
Guillermo Calvo edited this page Feb 27, 2019
·
3 revisions
📝:
- Blocks introduced by a keyword CAN'T be broken. You cannot use neither
return
,goto
,break
orcontinue
to jump out of anytry
,catch
,finally
,with
oruse
blocks. You canthrow
exceptions, though. The same apply to blocks introduced bye4c_using_context
ore4c_reusing_context
. - Exceptions are unchecked, so you should wrap your application's main loop with a catch-all block if you don't want your application exiting when an exception pops out
main
.
-
AssertionException
cannot be caught whatsoever. In addition, if afinally
block attempts toretry
the block when an assertion exception has been previously thrown, theretry
will not take place. -
Fatal errors regarding the exception handling system (such as attempting to
throw
an exception without a proper context) cannot be handled by the program.