Documents Exception::Throw.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-11-21 12:35:40 +01:00
parent 69714084d6
commit b239b556dc
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ namespace ArbUt {
{ {
} }
template <typename... Args> template <typename... Args>
/// @brief Throw a nicely formatted exception. The exception message will have the file name, line number, message,
/// along with any optional parameters passed.
[[noreturn]] static void Throw(const std::string& expression, const std::source_location& location, [[noreturn]] static void Throw(const std::string& expression, const std::source_location& location,
const Args... args) { const Args... args) {
std::stringstream error; std::stringstream error;