def default_exception_handler(self, context):
self._logger.debug('<STR_LIT>')<EOL>message = context.get('<STR_LIT:message>')<EOL>if not message:<EOL><INDENT>message = '<STR_LIT>'<EOL><DEDENT>try:<EOL><INDENT>exception = context['<STR_LIT>']<EOL><DEDENT>except KeyError:<EOL><INDENT>exc_info = False<EOL><DEDENT>else:<EOL><INDENT>exc_info = (type(exception), exception, exception.__traceback__)<EOL><DEDENT>log_lines = [message]<EOL>for key in [k for k in sorted(context) if k not in {'<STR_LIT:message>', '<STR_LIT>'}]:<EOL><INDENT>log_lines.append('<STR_LIT>'.format(key, context[key]))<EOL><DEDENT>self.__log_error('<STR_LIT:\n>'.join(log_lines), exc_info=exc_info)<EOL>
Handle exceptions.

        This is the default exception handler.

        This is called when an exception occurs and no exception
        handler is set, and can be called by a custom exception
        handler that wants to defer to the default behavior.

        context parameter has the same meaning as in
        `call_exception_handler()`.