(self)
Check for and raise exception for any previous sqlite query.

        For the `execute*` family of method calls, such calls are non-blocking and any
        exception raised in the thread cannot be handled by the calling Thread (usually
        MainThread).  This method is called on `close`, and prior to any subsequent
        calls to the `execute*` methods to check for and raise an exception in a
        previous call to the MainThread.
Check for and raise exception for any previous sqlite query.
Check for and raise exception for any previous sqlite query .
def check_raise_error(self):
        """
        Check for and raise exception for any previous sqlite query.

        For the `execute*` family of method calls, such calls are non-blocking and any
        exception raised in the thread cannot be handled by the calling Thread (usually
        MainThread).  This method is called on `close`, and prior to any subsequent
        calls to the `execute*` methods to check for and raise an exception in a
        previous call to the MainThread.
        """
        if self.exception:
            e_type, e_value, e_tb = self.exception

            # clear self.exception, if the caller decides to handle such
            # exception, we should not repeatedly re-raise it.
            self.exception = None

            self.log.error('An exception occurred from a previous statement, view '
                           'the logging namespace "sqlitedict" for outer stack.')

            # The third argument to raise is the traceback object, and it is
            # substituted instead of the current location as the place where
            # the exception occurred, this is so that when using debuggers such
            # as `pdb', or simply evaluating the naturally raised traceback, we
            # retain the original (inner) location of where the exception
            # occurred.
            reraise(e_type, e_value, e_tb)
def check_raise_error ( self ) : if self . exception : e_type , e_value , e_tb = self . exception # clear self.exception, if the caller decides to handle such # exception, we should not repeatedly re-raise it. self . exception = None self . log . error ( 'An exception occurred from a previous statement, view ' 'the logging namespace "sqlitedict" for outer stack.' ) # The third argument to raise is the traceback object, and it is # substituted instead of the current location as the place where # the exception occurred, this is so that when using debuggers such # as `pdb', or simply evaluating the naturally raised traceback, we # retain the original (inner) location of where the exception # occurred. reraise ( e_type , e_value , e_tb )