summaryrefslogtreecommitdiff
path: root/pixpat-native/src/error.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2026-05-08 17:22:58 +0300
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2026-05-08 17:22:58 +0300
commite0b7d30fd437292c88141fb08d60681870b86c6e (patch)
tree7d7f4e94cbec0f4f494042f7cbf39c7c8e7234fe /pixpat-native/src/error.h
Squashed 'subprojects/pixpat/' content from commit d444626
git-subtree-dir: subprojects/pixpat git-subtree-split: d444626e6ba988ec6d487800721e447f94b1eaf5
Diffstat (limited to 'pixpat-native/src/error.h')
-rw-r--r--pixpat-native/src/error.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/pixpat-native/src/error.h b/pixpat-native/src/error.h
new file mode 100644
index 0000000..83a3596
--- /dev/null
+++ b/pixpat-native/src/error.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <stdexcept>
+
+namespace pixpat
+{
+
+struct error : std::runtime_error {
+ using std::runtime_error::runtime_error;
+};
+
+struct invalid_argument : error {
+ using error::error;
+};
+
+} // namespace pixpat