Mercurial > pymonkey
diff docs/src/pymonkey.txt @ 167:b745c9d8eef9
Added docs for pending exception methods.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 30 Aug 2009 20:13:41 -0700 |
parents | 3fadba042201 |
children | 68d9e1ed19f8 |
line wrap: on
line diff
--- a/docs/src/pymonkey.txt Sun Aug 30 20:04:35 2009 -0700 +++ b/docs/src/pymonkey.txt Sun Aug 30 20:13:41 2009 -0700 @@ -318,6 +318,20 @@ Performs garbage collection on the context's JavaScript runtime. + .. method:: is_exception_pending() + + Returns whether an exception is currently being propagated in + the context. + + .. method:: get_pending_exception() + + Returns the current exception being propagated in the context. If + no exception is being propagated, this method returns ``None``. + + If you need to disambiguate between whether ``None`` is the + pending exception or there is no pending exception, use + :meth:`is_exception_pending()`. + .. method:: set_operation_callback(func) Sets the operation callback for the context to the given Python