--- a/tool/MasterDevice.h Wed Jul 23 07:29:00 2008 +0000
+++ b/tool/MasterDevice.h Wed Jul 23 08:06:10 2008 +0000
@@ -8,6 +8,7 @@
#define __EC_MASTER_H__
#include <stdexcept>
+#include <sstream>
using namespace std;
#include "../include/ecrt.h"
@@ -18,11 +19,13 @@
class MasterDeviceException:
public runtime_error
{
- public:
+ friend class MasterDevice;
+
+ protected:
/** Constructor with std::string parameter. */
MasterDeviceException(
- const string &s /**< Message. */
- ): runtime_error(s) {}
+ const stringstream &s /**< Message. */
+ ): runtime_error(s.str()) {}
};
/****************************************************************************/