1 #ifndef SCRIPT_SCRIPTEXCEPTION_H
2 #define SCRIPT_SCRIPTEXCEPTION_H
4 //#include <Exception.h>
8 //! Thrown if the application or script performs invalid script operation.
9 class ScriptException
/*: public Exception*/ {
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
) {}
19 const std::string
& message() { return msg
; }