avr: Fix documentation for Bus
[avr-sim.git] / src / script / ScriptException.h
blobfa9bc0ca7462d63d04d2e5c995feb3e6e4c421ff
1 #ifndef SCRIPT_SCRIPTEXCEPTION_H
2 #define SCRIPT_SCRIPTEXCEPTION_H
4 //#include <Exception.h>
5 #include <string>
7 namespace script {
8 //! Thrown if the application or script performs invalid script operation.
9 class ScriptException /*: public Exception*/ {
10 public:
11 // ScriptException() : Exception(msg) {}
12 // ScriptException(const std::string & msg) : Exception(msg) {}
13 // ScriptException(const char *msg) : Exception(msg) {}
14 ScriptException() : msg(msg) {}
15 ScriptException(const std::string & msg) : msg(msg) {}
16 ScriptException(const char *msg) : msg(msg) {}
18 public:
19 const std::string & message() { return msg; }
21 private:
22 std::string msg;
25 #endif