summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-10 20:44:52 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-13 20:34:07 +0200
commit2795ab2e05fcd27a56ddb08ecbbc6af5c3bf983a (patch)
treedc66e7590728ace6fd2a7b0f90462f6da712e468 /src/util.h
parent97570ebdf7c0dc12a8218a143e2803ec7a792526 (diff)
Pass disk full / too many open files errors up to DoM.v1.10.26
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);
+}
+
}