Check that the image used to make a Cairo::ImageSurface is the right alignment and...
[dcpomatic.git] / src / lib / exceptions.h
index 93be3999b29a84feeda8e5584052c29872753aaf..9b7837a46bef89c695f0be7097a254566b8d8939 100644 (file)
@@ -50,12 +50,20 @@ public:
        {}
 
        DecodeError (std::string function, std::string caller)
-               : std::runtime_error (String::compose("%1 failed [%2", function, caller))
+               : std::runtime_error (String::compose("%1 failed [%2]", function, caller))
        {}
 
        DecodeError (std::string function, std::string caller, int error)
                : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, caller, error))
        {}
+
+       DecodeError (std::string function, std::string caller, boost::filesystem::path file)
+               : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, caller, file.string()))
+       {}
+
+       DecodeError (std::string function, std::string caller, int error, boost::filesystem::path file)
+               : std::runtime_error (String::compose("%1 failed [%2] (%3) (%4)", function, caller, error, file.string()))
+       {}
 };
 
 
@@ -369,7 +377,8 @@ public:
 class GLError : public std::runtime_error
 {
 public:
-       GLError (char const * last, int e);
+       GLError (char const* last, int e);
+       GLError (char const* message);
 };