summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exceptions.cc')
-rw-r--r--src/lib/exceptions.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index e2e7fc4bc..4eca9f67e 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -190,3 +190,20 @@ SQLError::get_filename(SQLiteDatabase& db)
return {};
}
+
+
+#ifdef DCPOMATIC_HAVE_NVJPEG2K
+CUDAError::CUDAError(string function, cudaError error)
+ : runtime_error(fmt::format("CUDA error on {} ({})", function, static_cast<int>(error)))
+{
+
+}
+
+
+CUDAError::CUDAError(string function, int error)
+ : runtime_error(fmt::format("CUDA error on {} ({})", function, error))
+{
+
+}
+#endif
+