title: C++98 Exception specification of overriding function is more lax than base version
body: <p>So I have this 2 nested custom exception class in one of my classes and what I was trying to do is to throw the exception by calling its constructors and initialize _msg and then catch the _msg with what(). But I couldn't compile my codes.</p>
  <pre class="lang-cpp prettyprint-override"><code>        class GradeTooHighException : public std::exception {
              public:
                  GradeTooHighException(void);
                  virtual const char* what(void) const throw();
              private:
                  std::string _msg;
              
          };
          
          class GradeTooLowException : public std::exception {
              public:
                  GradeTooLowException(void);
                  GradeTooLowException(const Bureaucrat &amp;bur);
                  virtual const char* what(void) const throw();
              private:
                  std::string _msg;
          };
  </code></pre>
  <p>The error:</p>
  <pre><code>c++  -Wall -Werror -Wextra -Wshadow -std=c++98 -pedantic -MMD   -c -o main.o main.cpp
  In file included from main.cpp:13:
  In file included from ./Bureaucrat.hpp:16:
  ./Form.hpp:35:9: error: exception specification of overriding function is more lax than base version
                  class GradeTooHighException : public std::exception {
                        ^
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:101:13: note: overridden virtual function is here
      virtual ~exception() _NOEXCEPT;
              ^
  In file included from main.cpp:13:
  In file included from ./Bureaucrat.hpp:16:
  ./Form.hpp:44:9: error: exception specification of overriding function is more lax than base version
                  class GradeTooLowException : public std::exception {
                        ^
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:101:13: note: overridden virtual function is here
      virtual ~exception() _NOEXCEPT;
              ^
  2 errors generated.
  make: *** [main.o] Error 1
  </code></pre>
  <p>Thanks for any help in advance.</p>