Changing std::exception to std::runtime_error to use standard constructor.