X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.h;h=213be6186d523a713a0a3f167f77127e0047164e;hb=85c65bd422742813992686c17a5e1b718cc3c449;hp=c1240538f3de2e2a10b6dfb052e17d2bbbbffc9e;hpb=25674c1e6a66715286f7f9a5116fdf3baff1c738;p=dcpomatic.git diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index c1240538f..213be6186 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -230,6 +230,13 @@ public: PixelFormatError (std::string o, AVPixelFormat f); }; +/** An error that occurs while parsing a SubRip file */ +class SubRipError : public FileError +{ +public: + SubRipError (std::string, std::string, boost::filesystem::path); +}; + /** A parent class for classes which have a need to catch and * re-throw exceptions. This is intended for classes * which run their own thread; they should do something like @@ -253,6 +260,7 @@ public: boost::mutex::scoped_lock lm (_mutex); if (_exception) { boost::rethrow_exception (_exception); + _exception = boost::exception_ptr (); } }