diff options
| author | a1xd <[email protected]> | 2020-07-31 05:12:04 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-31 05:12:04 -0400 |
| commit | d5c012bcd5b7321671f9591a3e58d0b2c9507467 (patch) | |
| tree | fe64110f7678607947d19c5ba0b46ea2b15d69c4 /common/accel-error.hpp | |
| parent | Merge pull request #5 from JacobPalecki/WrapperAndGrapher (diff) | |
| parent | update grapher/wrapper for st-refactor (diff) | |
| download | rawaccel-d5c012bcd5b7321671f9591a3e58d0b2c9507467.tar.xz rawaccel-d5c012bcd5b7321671f9591a3e58d0b2c9507467.zip | |
Merge pull request #6 from a1xd/st-refactor
Refactor
Diffstat (limited to 'common/accel-error.hpp')
| -rw-r--r-- | common/accel-error.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/accel-error.hpp b/common/accel-error.hpp new file mode 100644 index 0000000..fa1f999 --- /dev/null +++ b/common/accel-error.hpp @@ -0,0 +1,11 @@ +#pragma once + +#include <stdexcept> + +namespace rawaccel { + + void error(const char* s) { + throw std::domain_error(s); + } + +} |