t.p.l.err(_stuff=None, _why=None, **kw) : function documentation

Part of twisted.python.log View Source

Write a failure to the log.

The _stuff and _why parameters use an underscore prefix to lessen the chance of colliding with a keyword argument the application wishes to pass. It is intended that they be supplied with arguments passed positionally, not by keyword.

Parameters_stuffThe failure to log. If _stuff is None a new Failure will be created from the current exception state. If _stuff is an Exception instance it will be wrapped in a Failure. (type: NoneType, Exception, or Failure.)
_whyThe source of this failure. This will be logged along with _stuff and should describe the context in which the failure occurred. (type: str)
API Documentation for Twisted, generated by pydoctor at 2013-11-08 22:07:30.