From 894a13926f79e209e3b619012cd2bb6961d959e2 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Tue, 28 Jul 2020 01:53:32 -0700 Subject: Further refactoring and comments --- common/Error.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/Error.hpp (limited to 'common/Error.hpp') diff --git a/common/Error.hpp b/common/Error.hpp new file mode 100644 index 0000000..ed87090 --- /dev/null +++ b/common/Error.hpp @@ -0,0 +1,10 @@ +#pragma once + +#include + + +namespace rawaccel { + void error(const char* s) { + throw std::domain_error(s); + } +} -- cgit v1.2.3