[0.1.x] __str__ -> __repr__ (print exception information)

git-svn-id: https://pykd.svn.codeplex.com/svn@71982 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2011-12-02 09:40:58 +00:00 committed by Mikhail I. Izmestev
parent bc3259e916
commit 8216319e59

View File

@ -628,7 +628,7 @@ BOOST_PYTHON_MODULE( pykd )
// wrapper for standart python exceptions // wrapper for standart python exceptions
python::register_exception_translator<pykd::PyException>( &PyException::exceptionTranslate ); python::register_exception_translator<pykd::PyException>( &PyException::exceptionTranslate );
#define _DECL_BASE_EXCEPT_STR .def( "__str__", &pykd::DbgException::print ) #define _DECL_BASE_EXCEPT_STR .def( "__repr__", &pykd::DbgException::print )
// base exception // base exception
python::class_<pykd::DbgException> dbgExceptionClass( "BaseException", python::class_<pykd::DbgException> dbgExceptionClass( "BaseException",