X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b7b9fb781045188e65beb5c1dfc391a2d21e5472..0abc9e8c70d2f3c5c98ed3429d4b630683f77c22:/src/simgrid/Exception.cpp diff --git a/src/simgrid/Exception.cpp b/src/simgrid/Exception.cpp index d59d4874a1..add73437f5 100644 --- a/src/simgrid/Exception.cpp +++ b/src/simgrid/Exception.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2020. 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. */ @@ -9,7 +9,20 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_context); namespace simgrid { -ForcefulKillException::~ForcefulKillException() = default; +// DO NOT define destructors for exceptions in Exception.hpp. +// Defining it here ensures that the exceptions are defined only in libsimgrid, but not in libsimgrid-java. +// Doing otherwise naturally breaks things (at least on freebsd with clang). + +Exception::~Exception() = default; +TimeoutException::~TimeoutException() = default; +HostFailureException::~HostFailureException() = default; +NetworkFailureException::~NetworkFailureException() = default; +StorageFailureException::~StorageFailureException() = default; +VmFailureException::~VmFailureException() = default; +CancelException::~CancelException() = default; +TracingError::~TracingError() = default; +ParseError::~ParseError() = default; +ForcefulKillException::~ForcefulKillException() = default; void ForcefulKillException::do_throw() {