Logo Search packages:      
Sourcecode: paramiko version File versions  Download package

def paramiko::transport::Transport::get_exception (   self  ) 

Return any exception that happened during the last server request.
This can be used to fetch more specific error information after using
calls like L{start_client}.  The exception (if any) is cleared after
this call.

@return: an exception, or C{None} if there is no stored exception.
@rtype: Exception

@since: 1.1

Definition at line 838 of file transport.py.

00838                            :
        """
        Return any exception that happened during the last server request.
        This can be used to fetch more specific error information after using
        calls like L{start_client}.  The exception (if any) is cleared after
        this call.
        
        @return: an exception, or C{None} if there is no stored exception.
        @rtype: Exception
        
        @since: 1.1
        """
        self.lock.acquire()
        try:
            e = self.saved_exception
            self.saved_exception = None
            return e
        finally:
            self.lock.release()

    def set_subsystem_handler(self, name, handler, *larg, **kwarg):


Generated by  Doxygen 1.6.0   Back to index