aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/safeint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/safeint.h')
-rw-r--r--src/lib/utils/safeint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils/safeint.h b/src/lib/utils/safeint.h
index 377f13418..5c9ea4955 100644
--- a/src/lib/utils/safeint.h
+++ b/src/lib/utils/safeint.h
@@ -19,6 +19,8 @@ class BOTAN_PUBLIC_API(2,0) Integer_Overflow_Detected final : public Exception
Integer_Overflow_Detected(const std::string& file, int line) :
Exception("Integer overflow detected at " + file + ":" + std::to_string(line))
{}
+
+ ErrorType error_type() const noexcept override { return ErrorType::InternalError; }
};
inline size_t checked_add(size_t x, size_t y, const char* file, int line)