A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added circle placement for ns3 wifi nodes
[simgrid.git]
/
include
/
simgrid
/
Exception.hpp
diff --git
a/include/simgrid/Exception.hpp
b/include/simgrid/Exception.hpp
index 613ca5af12db6643569c5c02c5582a2714baf468..7a3447c5d44534d719e63275966f6ea3564e9d59 100644
(file)
--- a/
include/simgrid/Exception.hpp
+++ b/
include/simgrid/Exception.hpp
@@
-61,19
+61,19
@@
public:
class XBT_PUBLIC ImpossibleError : public std::logic_error {
public:
explicit ImpossibleError(const std::string& arg) : std::logic_error(arg) {}
class XBT_PUBLIC ImpossibleError : public std::logic_error {
public:
explicit ImpossibleError(const std::string& arg) : std::logic_error(arg) {}
- ~ImpossibleError();
+ ~ImpossibleError()
override
;
};
class XBT_PUBLIC InitializationError : public std::logic_error {
public:
explicit InitializationError(const std::string& arg) : std::logic_error(arg) {}
};
class XBT_PUBLIC InitializationError : public std::logic_error {
public:
explicit InitializationError(const std::string& arg) : std::logic_error(arg) {}
- ~InitializationError();
+ ~InitializationError()
override
;
};
class XBT_PUBLIC UnimplementedError : public std::logic_error {
public:
explicit UnimplementedError(const std::string& arg) : std::logic_error(arg) {}
};
class XBT_PUBLIC UnimplementedError : public std::logic_error {
public:
explicit UnimplementedError(const std::string& arg) : std::logic_error(arg) {}
- ~UnimplementedError();
+ ~UnimplementedError()
override
;
};
} // namespace xbt
};
} // namespace xbt
@@
-85,12
+85,14
@@
public:
: std::runtime_error(std::move(message)), throwpoint_(std::move(throwpoint))
{
}
: std::runtime_error(std::move(message)), throwpoint_(std::move(throwpoint))
{
}
- ~Exception(); // DO NOT define it here -- see Exception.cpp for a rationale
+ Exception(const Exception&) = default;
+ Exception(Exception&&) noexcept = default;
+ ~Exception() override; // DO NOT define it here -- see Exception.cpp for a rationale
/** Return the information about where the exception was thrown */
xbt::ThrowPoint const& throw_point() const { return throwpoint_; }
/** Return the information about where the exception was thrown */
xbt::ThrowPoint const& throw_point() const { return throwpoint_; }
- std::string
const
resolve_backtrace() const { return throwpoint_.backtrace_.resolve(); }
+ std::string resolve_backtrace() const { return throwpoint_.backtrace_.resolve(); }
/** Allow to carry a value (used by waitall/waitany) */
int value = 0;
/** Allow to carry a value (used by waitall/waitany) */
int value = 0;
@@
-106,6
+108,9
@@
public:
: Exception(std::move(throwpoint), std::move(message))
{
}
: Exception(std::move(throwpoint), std::move(message))
{
}
+ TimeoutException(const TimeoutException&) = default;
+ TimeoutException(TimeoutException&&) noexcept = default;
+ ~TimeoutException() override;
};
XBT_ATTRIB_DEPRECATED_v328("Please use simgrid::TimeoutException") typedef TimeoutException TimeoutError;
};
XBT_ATTRIB_DEPRECATED_v328("Please use simgrid::TimeoutException") typedef TimeoutException TimeoutError;
@@
-117,6
+122,9
@@
public:
: Exception(std::move(throwpoint), std::move(message))
{
}
: Exception(std::move(throwpoint), std::move(message))
{
}
+ HostFailureException(const HostFailureException&) = default;
+ HostFailureException(HostFailureException&&) noexcept = default;
+ ~HostFailureException() override;
};
/** Exception raised when a communication fails because of the network or because of the remote host */
};
/** 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))
{
}
: Exception(std::move(throwpoint), std::move(message))
{
}
+ NetworkFailureException(const NetworkFailureException&) = default;
+ NetworkFailureException(NetworkFailureException&&) noexcept = default;
+ ~NetworkFailureException() override;
};
/** Exception raised when a storage fails */
};
/** Exception raised when a storage fails */
@@
-135,6
+146,9
@@
public:
: Exception(std::move(throwpoint), std::move(message))
{
}
: Exception(std::move(throwpoint), std::move(message))
{
}
+ StorageFailureException(const StorageFailureException&) = default;
+ StorageFailureException(StorageFailureException&&) noexcept = default;
+ ~StorageFailureException() override;
};
/** Exception raised when a VM fails */
};
/** Exception raised when a VM fails */
@@
-144,6
+158,9
@@
public:
: Exception(std::move(throwpoint), std::move(message))
{
}
: Exception(std::move(throwpoint), std::move(message))
{
}
+ VmFailureException(const VmFailureException&) = default;
+ VmFailureException(VmFailureException&&) noexcept = default;
+ ~VmFailureException() override;
};
/** Exception raised when something got canceled before completion */
};
/** Exception raised when something got canceled before completion */
@@
-153,6
+170,9
@@
public:
: Exception(std::move(throwpoint), std::move(message))
{
}
: Exception(std::move(throwpoint), std::move(message))
{
}
+ CancelException(const CancelException&) = default;
+ CancelException(CancelException&&) noexcept = default;
+ ~CancelException() override;
};
/** Exception raised when something is going wrong during the simulation tracing */
};
/** Exception raised when something is going wrong during the simulation tracing */
@@
-162,6
+182,9
@@
public:
: Exception(std::move(throwpoint), std::move(message))
{
}
: Exception(std::move(throwpoint), std::move(message))
{
}
+ TracingError(const TracingError&) = default;
+ TracingError(TracingError&&) noexcept = default;
+ ~TracingError() override;
};
/** Exception raised when something is going wrong during the parsing of XML files */
};
/** 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()))
{
}
: 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() override;
};
class XBT_PUBLIC ForcefulKillException {
};
class XBT_PUBLIC ForcefulKillException {