made safe-int c++1y-safe
replaced an exception's implementation by inheriting the ctor