2009-04-07 18:33:44 +00:00
|
|
|
//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
|
2008-06-28 18:29:40 +00:00
|
|
|
|
|
|
|
//Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
2020-12-22 17:26:53 -08:00
|
|
|
#include <boost/config.hpp>
|
|
|
|
|
|
|
|
#if defined( BOOST_NO_EXCEPTIONS )
|
|
|
|
# error This program requires exception handling.
|
|
|
|
#endif
|
|
|
|
|
2008-09-19 20:29:26 +00:00
|
|
|
#include <boost/exception/exception.hpp>
|
2008-06-28 18:29:40 +00:00
|
|
|
#include <stdexcept>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace
|
|
|
|
boost
|
|
|
|
{
|
|
|
|
namespace
|
|
|
|
exception_test
|
|
|
|
{
|
|
|
|
void
|
|
|
|
throw_length_error()
|
|
|
|
{
|
|
|
|
throw enable_error_info( std::length_error("exception test length error") );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|