]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/controller.cpp
Fix remaining exception class names
[r2c2.git] / source / libr2c2 / controller.cpp
index 660363d6c53f12beee31ab36315c35cc7282c762..ebec9903da0f450fd0ef4a91bfbc9ddecf2b7d0b 100644 (file)
@@ -1,9 +1,7 @@
 #include <cmath>
-#include <msp/core/except.h>
 #include "controller.h"
 
 using namespace std;
-using namespace Msp;
 
 namespace R2C2 {
 
@@ -37,7 +35,7 @@ Controller::Control Controller::Control::binary(const string &n)
 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;
@@ -53,7 +51,7 @@ Controller::Control Controller::Control::discrete(const string &n, float m, floa
 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;