Exception.hpp
109 throw std::runtime_error(Reaktoro::str("\033[1;31m***ERROR*** ", Reaktoro::str(items...), "\n\033[0m"));
143 throw std::runtime_error(Reaktoro::str("\033[1;31m***ERROR***\n", Reaktoro::str(__VA_ARGS__), "\n\033[0m")); \
152 throw std::runtime_error(Reaktoro::str("\033[1;31m***ERROR***\n", Reaktoro::str(__VA_ARGS__), "\n\033[0m")); \
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto error(bool condition, Args... items) -> void
Raise a runtime error if condition is true.
Definition: Exception.hpp:106
auto warning(bool condition, Args... items) -> void
Issue a warning message if condition is true.
Definition: Exception.hpp:98
auto str(Args... items) -> std::string
Concatenate the arguments into a string without any separator string.
Definition: StringUtils.hpp:73
Provides a convenient way to initialized an exception with helpful error messages.
Definition: Exception.hpp:46
std::stringstream reason
The reason message to be displayed when the exception is raised.
Definition: Exception.hpp:51
std::stringstream error
The error message to be displayed when the exception is raised.
Definition: Exception.hpp:48