/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/msg.h"
#include <stdio.h> /* sscanf */
// We should wait a bit (if not the process will end before the communication, hence an exception on the other side).
try {
MSG_process_sleep(30);
- } catch (xbt_ex& e) {
- if (e.category == host_error) {
- XBT_INFO("The host has died ... as expected.");
- } else {
- XBT_ERROR("An unexpected exception has been raised.");
- throw;
- }
+ } catch (simgrid::HostFailureException& e) {
+ XBT_INFO("The host has died ... as expected.");
}
XBT_INFO(" TX done");
return 0;