mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 19:53:22 +08:00
[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:
parent
bc3259e916
commit
8216319e59
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user