Files
exception/test/helper1.cpp

23 lines
542 B
C++
Raw Normal View History

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>
#include <string>
2008-03-04 01:41:17 +00:00
namespace
boost
{
namespace
exception_test
{
void
throw_length_error()
{
throw enable_error_info( std::length_error("exception test length error") );
}
}
}