#include <Moof/Dispatcher.hh>
#include <Moof/Event.hh>
+#include <Moof/Exception.hh>
#include <Moof/Math.hh>
virtual void draw(Scalar alpha);
virtual void handleEvent(const Event& event);
- struct Exception : std::runtime_error
+ struct Exception : public Mf::Exception
{
- explicit Exception(const std::string& what_arg) :
- std::runtime_error(what_arg) {}
+ explicit Exception(unsigned error) :
+ Mf::Exception(error) {}
+
+ void raise()
+ {
+ throw *this;
+ }
};
private: