1 /* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #include <simgrid/Exception.hpp>
8 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_context);
12 ForcefulKillException::~ForcefulKillException() = default;
14 void ForcefulKillException::do_throw()
16 throw ForcefulKillException();
19 bool ForcefulKillException::try_n_catch(const std::function<void()>& try_block)
25 } catch (ForcefulKillException const&) {
26 XBT_DEBUG("Caught a ForcefulKillException");
31 } // namespace simgrid