X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5af9da1ff0f589bce8af787d03a956cbc97eb3eb..3134d607e2064a5331d38fb6d4f0d48e90a886d4:/include/simgrid/Exception.hpp diff --git a/include/simgrid/Exception.hpp b/include/simgrid/Exception.hpp index b7d232fa2d..675d959f66 100644 --- a/include/simgrid/Exception.hpp +++ b/include/simgrid/Exception.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved. */ /* 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. */ @@ -92,6 +92,8 @@ public: * @param message Exception message */ xbt_ex(simgrid::xbt::ThrowPoint throwpoint, std::string message) : simgrid::Exception(throwpoint, message) {} + + xbt_ex(const xbt_ex&) = default; ~xbt_ex(); // DO NOT define it here -- see ex.cpp for a rationale @@ -113,7 +115,7 @@ public: } }; -/** Exception raised when an host fails */ +/** Exception raised when a host fails */ class HostFailureException : public xbt_ex { public: HostFailureException(simgrid::xbt::ThrowPoint throwpoint, std::string message) : xbt_ex(throwpoint, message)