예제 #1
0
파일: event.py 프로젝트: pubnub/gevent
 def exc_info(self):
     """
     The three-tuple of exception information if :meth:`set_exception` was called.
     """
     if self._exc_info:
         return (self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     return ()
예제 #2
0
 def exc_info(self):
     """
     The three-tuple of exception information if :meth:`set_exception` was called.
     """
     if self._exc_info:
         return (self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     return ()
예제 #3
0
    def exc_info(self):
        """
        Holds the exc_info three-tuple raised by the function if the
        greenlet finished with an error. Otherwise a false value.

        .. note:: This is a provisional API and may change.

        .. versionadded:: 1.1
        """
        ei = self._exc_info
        if ei is not None and ei[0] is not None:
            return (ei[0], ei[1], load_traceback(ei[2]))
예제 #4
0
파일: greenlet.py 프로젝트: thedrow/gevent
    def exc_info(self):
        """
        Holds the exc_info three-tuple raised by the function if the
        greenlet finished with an error. Otherwise a false value.

        .. note:: This is a provisional API and may change.

        .. versionadded:: 1.1
        """
        e = self._exc_info
        if e and e[0] is not None:
            return (e[0], e[1], load_traceback(e[2]))
예제 #5
0
 def exc_info(self):
     """Holds the exc_info three-tuple raised by the function if the greenlet finished with an error.
     Otherwise a false value."""
     e = self._exc_info
     if e:
         return (e[0], e[1], load_traceback(e[2]))
예제 #6
0
 def exc_info(self):
     """Holds the exc_info three-tuple raised by the function if the greenlet finished with an error.
     Otherwise a false value."""
     e = self._exc_info
     if e:
         return (e[0], e[1], load_traceback(e[2]))
예제 #7
0
파일: event.py 프로젝트: naisanza/gevent
 def _raise_exception(self):
     if self._exc_info:
         reraise(self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     raise self._exception
예제 #8
0
파일: event.py 프로젝트: squarecap/gevent
 def _raise_exception(self):
     if self._exc_info:
         reraise(self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     raise self._exception