title: Throw and catch std::string
body: <p>I made strange code, but surprisingly it works. But now I don't know what I throw and how can I catch it:</p>
  
  <pre><code>class Date {
  private:
      int day;
      int month;
      int year;
      int daysPerMonth[];
  public:
      Date( int day, int month, int year ) {
          int daysPerMonth[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
  
          if(isValidDate(day, month, year)) {
              this-&gt;day = day;
              this-&gt;month = month;
              this-&gt;year = year;
          } else {
              throw std::string("No valid input date numbers...");//what i throw???
          }
      }
  </code></pre>
  
  <p>Please help me with code.</p>