summaryrefslogtreecommitdiff
path: root/common/accel-classic.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-08-11 23:15:02 -0400
committera1xd <[email protected]>2020-08-11 23:15:02 -0400
commitc7f881c86913f309f00f79289b2f3c88ce6919eb (patch)
tree7ffc41237725e3ec0e9f53313644365912ded060 /common/accel-classic.hpp
parentadd a cooldown on write (one second) (diff)
downloadrawaccel-c7f881c86913f309f00f79289b2f3c88ce6919eb.tar.xz
rawaccel-c7f881c86913f309f00f79289b2f3c88ce6919eb.zip
define exceptions for invalid arg & io errors
Diffstat (limited to 'common/accel-classic.hpp')
-rw-r--r--common/accel-classic.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/accel-classic.hpp b/common/accel-classic.hpp
index 1a2adca..0a380dd 100644
--- a/common/accel-classic.hpp
+++ b/common/accel-classic.hpp
@@ -22,7 +22,7 @@ namespace rawaccel {
}
void verify(const accel_args& args) const {
- if (args.exponent <= 1) error("exponent must be greater than 1");
+ if (args.exponent <= 1) bad_arg("exponent must be greater than 1");
}
};