exception documentation

An error class we can control and pretty-print.

Method __init__ Return an NTTError, with a pretty __str__ method.
Method __str__ Return a pretty string with all our details.
Instance Variable content Undocumented
Instance Variable file Undocumented
Instance Variable suggestion Undocumented
Instance Variable summary Undocumented
Instance Variable title Undocumented
def __init__(self, title: str | None = None, summary: str | None = None, file: str | None = None, content: tuple[str] | None = None, suggestion: str | None = None): (source)

Return an NTTError, with a pretty __str__ method.

Parameters
title:str | NoneThe title of the error.
summary:str | NoneA summary of the error.
file:str | NoneThe source, usually a filename, potentially with :lineno:colno suffix.
content:tuple[str] | NoneMiscellaneous extra lines to print.
suggestion:str | NoneA suggestion for how to fix the error.
def __str__(self) -> str: (source)

Return a pretty string with all our details.

Returns
strA pretty string.

Undocumented

Undocumented

suggestion = (source)

Undocumented

Undocumented

Undocumented