diff options
| author | a1xd <[email protected]> | 2020-08-11 23:15:02 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-08-11 23:15:02 -0400 |
| commit | c7f881c86913f309f00f79289b2f3c88ce6919eb (patch) | |
| tree | 7ffc41237725e3ec0e9f53313644365912ded060 /common/accel-classic.hpp | |
| parent | add a cooldown on write (one second) (diff) | |
| download | rawaccel-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.hpp | 2 |
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"); } }; |