runtime_error.hpp 630 B

123456789101112131415161718192021222324252627
  1. // runtime_error.hpp
  2. // Copyright (c) 2007-2009 Ben Hanson (http://www.benhanson.net/)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_LEXER_RUNTIME_ERROR_HPP
  7. #define BOOST_LEXER_RUNTIME_ERROR_HPP
  8. #include <boost/config.hpp> // for BOOST_SYMBOL_VISIBLE
  9. #include <stdexcept>
  10. namespace boost
  11. {
  12. namespace lexer
  13. {
  14. class BOOST_SYMBOL_VISIBLE runtime_error : public std::runtime_error
  15. {
  16. public:
  17. runtime_error (const std::string &what_arg_) :
  18. std::runtime_error (what_arg_)
  19. {
  20. }
  21. };
  22. }
  23. }
  24. #endif