X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4c5e4b83e02a8e003c4e5067476649dce17df103..534d31e4fc62b248c646ad6e19518e8a7b11e048:/doc/gtut-tour-08-exceptions.doc diff --git a/doc/gtut-tour-08-exceptions.doc b/doc/gtut-tour-08-exceptions.doc index 6a9c15c525..b9c7e36da3 100644 --- a/doc/gtut-tour-08-exceptions.doc +++ b/doc/gtut-tour-08-exceptions.doc @@ -54,14 +54,15 @@ its own arguments. So, you may have something like the following: Then, you simply add a #TRY/#CATCH block around your code: \verbatim TRY{ /* your code */ -} CATCH(e) { +} +CATCH(e) { /* error handling code */ } \endverbatim Another strange thing is that you should actually free the memory allocated to the exception with xbt_ex_fres() if you manage to deal with them. There is a bit more than this on the picture (#TRY_CLEANUP blocks, for example), and -you should check the section \ref XBT_ex for more details. +you should check the section \ref XBT_ex for more details. You should be very carfull when using the exceptions. They work great when used correctly, but there is a few golden rules you should never break.