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

Method handle_error

Lib/test/support/asyncore.py:462–480  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

460 self.handle_expt()
461
462 def handle_error(self):
463 nil, t, v, tbinfo = compact_traceback()
464
465 # sometimes a user repr method will crash.
466 try:
467 self_repr = repr(self)
468 except:
469 self_repr = '<__repr__(self) failed for object at %0x>' % id(self)
470
471 self.log_info(
472 'uncaptured python exception, closing channel %s (%s:%s %s)' % (
473 self_repr,
474 t,
475 v,
476 tbinfo
477 ),
478 'error'
479 )
480 self.handle_close()
481
482 def handle_expt(self):
483 self.log_info('unhandled incoming priority event', 'warning')

Callers 6

handle_readMethod · 0.45
initiate_sendMethod · 0.45
readFunction · 0.45
writeFunction · 0.45
_exceptionFunction · 0.45
readwriteFunction · 0.45

Calls 4

log_infoMethod · 0.95
handle_closeMethod · 0.95
compact_tracebackFunction · 0.85
idFunction · 0.85

Tested by

no test coverage detected