From c7f881c86913f309f00f79289b2f3c88ce6919eb Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Tue, 11 Aug 2020 23:15:02 -0400 Subject: define exceptions for invalid arg & io errors --- common/accel-sigmoid.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/accel-sigmoid.hpp') diff --git a/common/accel-sigmoid.hpp b/common/accel-sigmoid.hpp index 7cfa6c4..5bbe58f 100644 --- a/common/accel-sigmoid.hpp +++ b/common/accel-sigmoid.hpp @@ -24,8 +24,8 @@ namespace rawaccel { } void verify(const accel_args& args) const { - if (args.limit <= 1) error("exponent must be greater than 1"); - if (args.midpoint < 0) error("midpoint must not be negative"); + if (args.limit <= 1) bad_arg("exponent must be greater than 1"); + if (args.midpoint < 0) bad_arg("midpoint must not be negative"); } }; -- cgit v1.2.3