#NEWLINE# def _swallow_error( self , fail , msg ) : #NEWLINE# #INDENT# '\n        This is an internal generic error-handler for errors encountered\n        when calling down to on*() handlers that can reasonably be\n        expected to be overridden in user code.\n\n        Note that it *cancels* the error, so use with care!\n\n        Specifically, this should *never* be added to the errback\n        chain for a Deferred/coroutine that will make it out to user\n        code.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# self . onUserError ( self , msg ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# self . log . error ( 'Internal error: {tb}' , tb = txaio . failure_format_traceback ( txaio . create_failure ( ) ) ) #NEWLINE# #UNINDENT# return None