#include <cmath>
-#include <msp/core/except.h>
#include "controller.h"
using namespace std;
-using namespace Msp;
namespace R2C2 {
Controller::Control Controller::Control::discrete(const string &n, float m, float x, float s)
{
if(x<m)
- throw InvalidParameterValue("Max value must be greater than min value");
+ throw invalid_argument("Controller::Control::discrete");
Controller::Control tc;
tc.name = n;
Controller::Control Controller::Control::continuous(const string &n, float m, float x)
{
if(x<m)
- throw InvalidParameterValue("Max value must be greater than min value");
+ throw invalid_argument("Controller::Control::continuous");
Controller::Control tc;
tc.name = n;