X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FVideo.hh;h=d640ad2386ce7a4fefa4bdda725fb35485302297;hp=0dca8bbfeb5b36a79ead18a0760a89964c55a19c;hb=542e50a284c7f5b144a5c97c17f6d89b2af0175c;hpb=b887538a8ccc1c904f6aa24f0f6dcc23e0cc2f72 diff --git a/src/Moof/Video.hh b/src/Moof/Video.hh index 0dca8bb..d640ad2 100644 --- a/src/Moof/Video.hh +++ b/src/Moof/Video.hh @@ -35,6 +35,8 @@ #include +#include + namespace Mf { @@ -127,10 +129,15 @@ public: void swap(); - struct Exception : public 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; + } }; };