title: Throw with Error Message C++
body: <p>What I have tried:</p>
  
  <pre><code>class MyException : public std::runtime_error {};
  
  throw MyException("Sorry out of bounds, should be between 0 and "+limit);
  </code></pre>
  
  <p>I am not sure how I can implement such a feature.</p>