diff options
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 9b7837a46..3e841a354 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -32,6 +32,9 @@ extern "C" { #include <libavutil/pixfmt.h> } +#ifdef DCPOMATIC_FASTVIDEO +#include <common/EnumToStringSdk.h> +#endif #include <boost/filesystem.hpp> #include <boost/optional.hpp> #include <cstring> @@ -447,4 +450,18 @@ public: }; +#ifdef DCPOMATIC_FASTVIDEO +class FastvideoError : public std::runtime_error +{ +public: + template <class T> + FastvideoError (std::string s, T code) + : std::runtime_error (String::compose("Fastvideo error in %1 (%2)", s, EnumToString(code))) + {} + + FastvideoError (std::string s, std::string message); +}; +#endif + + #endif |
