MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / handle_error

Method handle_error

tools/python-3.11.9-amd64/Lib/asyncore.py:461–479  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Tested by

no test coverage detected