24#ifndef HEMOCELL_ERROR_H
25#define HEMOCELL_ERROR_H
37 explicit FatalError(
const std::string & message) : std::runtime_error(message) {}
55[[noreturn]]
void fatal(
const std::string & message);
59void warning(
const std::string & message);
63template <
typename First,
typename... Rest>
64void streamAll(std::ostringstream & out,
const First & first,
const Rest &... rest) {
72template <
typename First,
typename Second,
typename... Rest>
73[[noreturn]]
void fatal(
const First & first,
const Second & second,
const Rest &... rest) {
74 std::ostringstream message;
80template <
typename First,
typename Second,
typename... Rest>
81void warning(
const First & first,
const Second & second,
const Rest &... rest) {
82 std::ostringstream message;
FatalError(const std::string &message)
Definition error.h:37
FatalErrorsThrow(const FatalErrorsThrow &)=delete
~FatalErrorsThrow()
Definition error.cpp:75
FatalErrorsThrow()
Definition error.cpp:71
FatalErrorsThrow & operator=(const FatalErrorsThrow &)=delete
void streamAll(std::ostringstream &)
Definition error.h:62
void fatal(const std::string &message)
Report a fatal error and end the whole MPI job.
Definition error.cpp:59
void warning(const std::string &message)
Definition error.cpp:67