mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 18:12:43 +00:00
Merged revisions 43533-43552 via svnmerge from
https://svn.boost.org/svn/boost/trunk ........ r43534 | eric_niebler | 2008-03-06 23:37:46 -0800 (Thu, 06 Mar 2008) | 1 line fix oops ........ r43535 | hkaiser | 2008-03-07 05:26:53 -0800 (Fri, 07 Mar 2008) | 1 line Wave: more fixes for #1673 ........ r43537 | vladimir_prus | 2008-03-07 08:18:13 -0800 (Fri, 07 Mar 2008) | 1 line Fix PCH on OSX ........ r43538 | eric_niebler | 2008-03-07 09:46:38 -0800 (Fri, 07 Mar 2008) | 1 line use a __pragma to disable a msvc warning, fixes #1672 ........ r43539 | eric_niebler | 2008-03-07 09:47:40 -0800 (Fri, 07 Mar 2008) | 1 line fix oops ........ r43540 | hkaiser | 2008-03-07 11:51:26 -0800 (Fri, 07 Mar 2008) | 1 line Wave: Started to add testing of preprocessor hooks. ........ r43541 | grafik | 2008-03-07 13:59:06 -0800 (Fri, 07 Mar 2008) | 1 line Disable exception testing line as it's breaking testing. ........ r43542 | hkaiser | 2008-03-07 14:53:13 -0800 (Fri, 07 Mar 2008) | 1 line Wave: Applied a workaround for Intel compilers and for Pathscale. ........ r43544 | emildotchevski | 2008-03-07 15:07:13 -0800 (Fri, 07 Mar 2008) | 1 line Hooking up boost exception for testing, second attempt. ........ r43546 | rwgk | 2008-03-08 20:30:13 -0800 (Sat, 08 Mar 2008) | 1 line map std::invalid_argument -> Python ValueError ........ [SVN r43554]
This commit is contained in:
@@ -41,6 +41,10 @@ BOOST_PYTHON_DECL bool handle_exception_impl(function0<void> f)
|
||||
{
|
||||
PyErr_SetString(PyExc_IndexError, x.what());
|
||||
}
|
||||
catch(const std::invalid_argument& x)
|
||||
{
|
||||
PyErr_SetString(PyExc_ValueError, x.what());
|
||||
}
|
||||
catch(const std::exception& x)
|
||||
{
|
||||
PyErr_SetString(PyExc_RuntimeError, x.what());
|
||||
|
||||
Reference in New Issue
Block a user