diff --git a/src/error.hpp b/src/error.hpp index 2094fabf4..104614fc2 100644 --- a/src/error.hpp +++ b/src/error.hpp @@ -137,6 +137,17 @@ class NonPerturbativeRunningError : public Error { int parameter_index; ///< index of parameter that becomes non-perturbative }; +class NonPerturbativeRunningQedQcdError : public Error { +public: + explicit NonPerturbativeRunningQedQcdError(std::string msg_) + : msg(msg_) + {} + virtual ~NonPerturbativeRunningQedQcdError() {} + virtual std::string what() const { return msg; } +private: + std::string msg; +}; + /** * @class OutOfMemoryError * @brief Not enough memory @@ -166,9 +177,7 @@ class OutOfBoundsError : public Error { : msg(msg_) {} virtual ~OutOfBoundsError() {} - virtual std::string what() const { - return msg; - } + virtual std::string what() const { return msg; } private: std::string msg; }; diff --git a/src/lowe.cpp b/src/lowe.cpp index 518b04ec3..ae3cf0606 100644 --- a/src/lowe.cpp +++ b/src/lowe.cpp @@ -12,25 +12,6 @@ #include "error.hpp" #include "wrappers.hpp" -namespace flexiblesusy { - -class NonPerturbativeRunningQedQcdError : public Error { -public: - explicit NonPerturbativeRunningQedQcdError(std::string msg_) - : msg(msg_) - {} - virtual ~NonPerturbativeRunningQedQcdError() {} - virtual std::string what() const { - std::stringstream message; - message << "NonPerturbativeRunningQedQcdError: Not enought memory: " << msg; - return message.str(); - } -private: - std::string msg; -}; - -} // namespace flexiblesusy - namespace softsusy { const char* QedQcd_input_parmeter_names[NUMBER_OF_LOW_ENERGY_INPUT_PARAMETERS] = {