Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused ctor.
[simgrid.git] / include / simgrid / Exception.hpp
index 613ca5a..b7ab71f 100644 (file)
@@ -85,6 +85,8 @@ public:
       : std::runtime_error(std::move(message)), throwpoint_(std::move(throwpoint))
   {
   }
+  Exception(const Exception&)     = default;
+  Exception(Exception&&) noexcept = default;
   ~Exception(); // DO NOT define it here -- see Exception.cpp for a rationale
 
   /** Return the information about where the exception was thrown */
@@ -106,6 +108,9 @@ public:
       : Exception(std::move(throwpoint), std::move(message))
   {
   }
+  TimeoutException(const TimeoutException&)     = default;
+  TimeoutException(TimeoutException&&) noexcept = default;
+  ~TimeoutException();
 };
 
 XBT_ATTRIB_DEPRECATED_v328("Please use simgrid::TimeoutException") typedef TimeoutException TimeoutError;
@@ -117,6 +122,9 @@ public:
       : Exception(std::move(throwpoint), std::move(message))
   {
   }
+  HostFailureException(const HostFailureException&)     = default;
+  HostFailureException(HostFailureException&&) noexcept = default;
+  ~HostFailureException();
 };
 
 /** Exception raised when a communication fails because of the network or because of the remote host */
@@ -126,6 +134,9 @@ public:
       : Exception(std::move(throwpoint), std::move(message))
   {
   }
+  NetworkFailureException(const NetworkFailureException&)     = default;
+  NetworkFailureException(NetworkFailureException&&) noexcept = default;
+  ~NetworkFailureException();
 };
 
 /** Exception raised when a storage fails */
@@ -135,6 +146,9 @@ public:
       : Exception(std::move(throwpoint), std::move(message))
   {
   }
+  StorageFailureException(const StorageFailureException&)     = default;
+  StorageFailureException(StorageFailureException&&) noexcept = default;
+  ~StorageFailureException();
 };
 
 /** Exception raised when a VM fails */
@@ -144,6 +158,9 @@ public:
       : Exception(std::move(throwpoint), std::move(message))
   {
   }
+  VmFailureException(const VmFailureException&)     = default;
+  VmFailureException(VmFailureException&&) noexcept = default;
+  ~VmFailureException();
 };
 
 /** Exception raised when something got canceled before completion */
@@ -153,6 +170,9 @@ public:
       : Exception(std::move(throwpoint), std::move(message))
   {
   }
+  CancelException(const CancelException&)     = default;
+  CancelException(CancelException&&) noexcept = default;
+  ~CancelException();
 };
 
 /** Exception raised when something is going wrong during the simulation tracing */
@@ -162,6 +182,9 @@ public:
       : Exception(std::move(throwpoint), std::move(message))
   {
   }
+  TracingError(const TracingError&)     = default;
+  TracingError(TracingError&&) noexcept = default;
+  ~TracingError();
 };
 
 /** Exception raised when something is going wrong during the parsing of XML files */
@@ -171,6 +194,9 @@ public:
       : Exception(XBT_THROW_POINT, xbt::string_printf("Parse error at %s:%d: %s", file.c_str(), line, msg.c_str()))
   {
   }
+  ParseError(const ParseError&)     = default;
+  ParseError(ParseError&&) noexcept = default;
+  ~ParseError();
 };
 
 class XBT_PUBLIC ForcefulKillException {