Skip to content

Commit

Permalink
move non-perturbative exception from QedQcd class to error.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 16, 2016
1 parent 18a8779 commit 0130d7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
15 changes: 12 additions & 3 deletions src/error.hpp
Expand Up @@ -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
Expand Down Expand Up @@ -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;
};
Expand Down
19 changes: 0 additions & 19 deletions src/lowe.cpp
Expand Up @@ -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] = {
Expand Down

0 comments on commit 0130d7b

Please sign in to comment.