if (not simcall->issuer->host_->is_on()) {
simcall->issuer->context_->iwannadie = true;
- simcall->issuer->exception =
+ simcall->issuer->exception_ =
std::make_exception_ptr(simgrid::HostFailureException(XBT_THROW_POINT, "Host failed"));
} else {
switch (comm->state_) {
break;
case SIMIX_SRC_TIMEOUT:
- simcall->issuer->exception = std::make_exception_ptr(
+ simcall->issuer->exception_ = std::make_exception_ptr(
simgrid::TimeoutError(XBT_THROW_POINT, "Communication timeouted because of the sender"));
break;
case SIMIX_DST_TIMEOUT:
- simcall->issuer->exception = std::make_exception_ptr(
+ simcall->issuer->exception_ = std::make_exception_ptr(
simgrid::TimeoutError(XBT_THROW_POINT, "Communication timeouted because of the receiver"));
break;
if (simcall->issuer == comm->src_actor_)
simcall->issuer->context_->iwannadie = true;
else
- simcall->issuer->exception =
+ simcall->issuer->exception_ =
std::make_exception_ptr(simgrid::NetworkFailureException(XBT_THROW_POINT, "Remote peer failed"));
break;
if (simcall->issuer == comm->dst_actor_)
simcall->issuer->context_->iwannadie = true;
else
- simcall->issuer->exception =
+ simcall->issuer->exception_ =
std::make_exception_ptr(simgrid::NetworkFailureException(XBT_THROW_POINT, "Remote peer failed"));
break;
case SIMIX_CANCELED:
if (simcall->issuer == comm->dst_actor_)
- simcall->issuer->exception = std::make_exception_ptr(
+ simcall->issuer->exception_ = std::make_exception_ptr(
simgrid::CancelException(XBT_THROW_POINT, "Communication canceled by the sender"));
else
- simcall->issuer->exception = std::make_exception_ptr(
+ simcall->issuer->exception_ = std::make_exception_ptr(
simgrid::CancelException(XBT_THROW_POINT, "Communication canceled by the receiver"));
break;
}
/* if there is an exception during a waitany or a testany, indicate the position of the failed communication */
- if (simcall->issuer->exception &&
+ if (simcall->issuer->exception_ &&
(simcall->call == SIMCALL_COMM_WAITANY || simcall->call == SIMCALL_COMM_TESTANY)) {
// First retrieve the rank of our failing synchro
int rank = -1;
// In order to modify the exception we have to rethrow it:
try {
- std::rethrow_exception(simcall->issuer->exception);
+ std::rethrow_exception(simcall->issuer->exception_);
} catch (simgrid::TimeoutError& e) {
e.value = rank;
- simcall->issuer->exception = std::make_exception_ptr(e);
+ simcall->issuer->exception_ = std::make_exception_ptr(e);
} catch (simgrid::NetworkFailureException& e) {
e.value = rank;
- simcall->issuer->exception = std::make_exception_ptr(e);
+ simcall->issuer->exception_ = std::make_exception_ptr(e);
} catch (simgrid::CancelException& e) {
e.value = rank;
- simcall->issuer->exception = std::make_exception_ptr(e);
+ simcall->issuer->exception_ = std::make_exception_ptr(e);
}
}