Replaced deprecated throw() function specifier with noexcept