XBT_INFO("Gloups. The cpu on which I'm running just turned off!. See you!");
return -1;
}
+ } catch (simgrid::HostFailureException& e) {
+ XBT_INFO("Gloups. The cpu on which I'm running just turned off!. See you!");
+ delete payload;
+ return -1;
} catch (xbt_ex& e) {
switch (e.category) {
- case host_error:
- XBT_INFO("Gloups. The cpu on which I'm running just turned off!. See you!");
- delete payload;
- return -1;
case network_error:
XBT_INFO("Mmh. Something went wrong. Nevermind. Let's keep going!");
break;
default:
- xbt_die("Unexpected behavior");
+ xbt_die("Unexpected behavior. Category: %s", xbt_ex_catname(e.category));
}
}
}
simdata->setNotUsed();
XBT_DEBUG("Execution task '%s' finished in state %d", task->name, (int)comp_state);
- }
- catch (xbt_ex& e) {
+ } catch (simgrid::HostFailureException& e) {
+ status = MSG_HOST_FAILURE;
+ } catch (xbt_ex& e) {
switch (e.category) {
case cancel_error:
status = MSG_TASK_CANCELED;
break;
- case host_error:
- status = MSG_HOST_FAILURE;
- break;
case timeout_error:
status = MSG_TIMEOUT;
break;
timeout, rate);
XBT_DEBUG("Got task %s from %s", (*task)->name, mailbox->get_cname());
(*task)->simdata->setNotUsed();
- }
- catch (xbt_ex& e) {
+ } catch (simgrid::HostFailureException& e) {
+ ret = MSG_HOST_FAILURE;
+ } catch (xbt_ex& e) {
switch (e.category) {
- case host_error:
case cancel_error:
ret = MSG_HOST_FAILURE;
break;
* @brief Creates a synchro that executes some computation of an host.
*
* This function creates a SURF action and allocates the data necessary
- * to create the SIMIX synchro. It can raise a host_error exception if the host crashed.
+ * to create the SIMIX synchro. It can raise a HostFailureException exception if the host crashed.
*
* @param name Name of the execution synchro to create
* @param category Tracing category
* @brief Creates a new sleep SIMIX synchro.
*
* This function creates a SURF action and allocates the data necessary
- * to create the SIMIX synchro. It can raise a host_error exception if the
+ * to create the SIMIX synchro. It can raise a HostFailureException if the
* host crashed. The default SIMIX name of the synchro is "sleep".
*
* @param duration Time duration of the sleep.