title: Custom Exception in c++
body: <p>I'm trying to create my own exception class but it is not working. Specifically, i am getting these errors:
      "looser throw specifier for 'virtual OversizeException::~OversizeException()'" 
      "overriding 'virtual std::exception::~exception() throw()'"
  I'm relatively new to C++ so i would like some help!
  Here is the the code</p>
  
  <pre><code>class OversizeException : public exception
  {
  private:    
      string message = " ";
  
  public:
      OverlapTilesException()
      {
           message = " Cannot put ship there! Oversize Exception";
      }
      const string what()
      {
          return message;
      }
  };
  </code></pre>