X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a5de99b2e59f7e8d83c592d361a980d5f33693e5..3184c55b2014ec8952b63bdd1f80a97563b30a1d:/doc/gtut-tour-08-exceptions.doc diff --git a/doc/gtut-tour-08-exceptions.doc b/doc/gtut-tour-08-exceptions.doc index 90dce052d9..057e9bf7fd 100644 --- a/doc/gtut-tour-08-exceptions.doc +++ b/doc/gtut-tour-08-exceptions.doc @@ -54,13 +54,14 @@ 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 (#CLEANUP blocks, for example), and +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 be very carfull when using the exceptions. They work great