helper1.cpp 542 B

12345678910111213141516171819202122
  1. //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include <boost/exception/exception.hpp>
  5. #include <stdexcept>
  6. #include <string>
  7. namespace
  8. boost
  9. {
  10. namespace
  11. exception_test
  12. {
  13. void
  14. throw_length_error()
  15. {
  16. throw enable_error_info( std::length_error("exception test length error") );
  17. }
  18. }
  19. }