X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2FMoof%2FEngine.hh;h=0617b1a5c3094025331233fe4c8ced0a5742010e;hb=57b78ebe21b1b48acd337daa5a1cb8c383959cfa;hp=aa751356f6a81b6ec1712cf1ee7bdf322384d749;hpb=a5f0d391406a68275b41448fc3f49e8d8396c497;p=chaz%2Fyoink diff --git a/src/Moof/Engine.hh b/src/Moof/Engine.hh index aa75135..0617b1a 100644 --- a/src/Moof/Engine.hh +++ b/src/Moof/Engine.hh @@ -33,8 +33,8 @@ #include -#include #include +#include #include @@ -71,10 +71,15 @@ public: 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: