diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-10 20:44:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-13 20:34:07 +0200 |
| commit | 2795ab2e05fcd27a56ddb08ecbbc6af5c3bf983a (patch) | |
| tree | dc66e7590728ace6fd2a7b0f90462f6da712e468 /src/util.h | |
| parent | 97570ebdf7c0dc12a8218a143e2803ec7a792526 (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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); +} + } |
