Added proper `#include <stdexcept>`