summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 3a962520..52cb135d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -42,6 +42,7 @@
#include "array_data.h"
+#include "exceptions.h"
#include "local_time.h"
#include "warnings.h"
LIBDCP_DISABLE_WARNINGS
@@ -173,6 +174,16 @@ add_to_container(To& container, From source)
}
+void maybe_throw_from_asdcplib(Kumu::Result_t result, boost::filesystem::path path);
+
+
+template <typename T>
+void throw_from_asdcplib(Kumu::Result_t result, boost::filesystem::path path, T const& general)
+{
+ maybe_throw_from_asdcplib(result, path);
+ boost::throw_exception(general);
+}
+
}