#NEWLINE# def catch_exceptions( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'A context manager that catches exceptions and calls\n        :meth:`exception` for exceptions caught that way.  Example:\n\n        .. code-block:: python\n\n            with logger.catch_exceptions():\n                execute_code_that_might_fail()\n        ' #NEWLINE# if ( not args ) : #NEWLINE# #INDENT# args = ( 'Uncaught exception occurred' , ) #NEWLINE# #UNINDENT# return _ExceptionCatcher ( self , args , kwargs )