2009-04-07 03:02:15 +00:00
|
|
|
//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
|
2008-03-04 01:41:17 +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)
|
|
|
|
|
2008-08-31 02:40:42 +00:00
|
|
|
#include <boost/exception/exception.hpp>
|
2008-03-04 01:41:17 +00:00
|
|
|
#include <stdexcept>
|
2008-04-08 21:29:37 +00:00
|
|
|
#include <string>
|
2008-03-04 01:41:17 +00:00
|
|
|
|
|
|
|
namespace
|
|
|
|
boost
|
2008-04-08 21:29:37 +00:00
|
|
|
{
|
|
|
|
namespace
|
|
|
|
exception_test
|
|
|
|
{
|
|
|
|
void
|
|
|
|
throw_length_error()
|
|
|
|
{
|
2008-06-25 23:27:56 +00:00
|
|
|
throw enable_error_info( std::length_error("exception test length error") );
|
2008-04-08 21:29:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|