Return formatted traceback. Subclasses may override this if they add extra arguments.
(
self,
etype: type,
value: BaseException | None,
tb: TracebackType | None,
tb_offset: Optional[int] = None,
context: int = 5,
)
| 526 | return "\n".join(stb) |
| 527 | |
| 528 | def text( |
| 529 | self, |
| 530 | etype: type, |
| 531 | value: BaseException | None, |
| 532 | tb: TracebackType | None, |
| 533 | tb_offset: Optional[int] = None, |
| 534 | context: int = 5, |
| 535 | ) -> str: |
| 536 | """Return formatted traceback. |
| 537 | |
| 538 | Subclasses may override this if they add extra arguments. |
| 539 | """ |
| 540 | tb_list = self.structured_traceback(etype, value, tb, tb_offset, context) |
| 541 | return self.stb2text(tb_list) |
| 542 | |
| 543 | def structured_traceback( |
| 544 | self, |