MCPcopy Index your code
hub / github.com/python/cpython / exception

Method exception

Lib/logging/__init__.py:1554–1558  ·  view source on GitHub ↗

Convenience method for logging an ERROR with exception information.

(self, msg, *args, exc_info=True, **kwargs)

Source from the content-addressed store, hash-verified

1552 self._log(ERROR, msg, args, **kwargs)
1553
1554 def exception(self, msg, *args, exc_info=True, **kwargs):
1555 """
1556 Convenience method for logging an ERROR with exception information.
1557 """
1558 self.error(msg, *args, exc_info=exc_info, **kwargs)
1559
1560 def critical(self, msg, *args, **kwargs):
1561 """

Callers 1

handleErrorMethod · 0.45

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected