exception documentation

An error generated while colorizing a paragraph.

Method __init__ Construct a new colorizing exception.
Method descr No summary
Constant CONTEXT_RANGE Undocumented
Instance Variable charnum Undocumented
Instance Variable token Undocumented

Inherited from ParseError:

Method __repr__ Return the formal representation of this ParseError. ParseErrors have formal representations of the form:
Method __str__ Return a string representation of this ParseError. This multi-line string contains a description of the error, and specifies where it occured.
Method is_fatal No summary
Method linenum No summary
Instance Variable _descr Undocumented
Instance Variable _fatal Undocumented
Instance Variable _linenum Undocumented
def __init__(self, descr: str, token: Token, charnum: int, is_fatal: bool = True): (source)

Construct a new colorizing exception.

Parameters
descr:strA short description of the error.
token:TokenThe token where the error occured
charnum:intThe character index of the position in token where the error occured.
is_fatal:boolUndocumented
def descr(self) -> str: (source)
Returns
strA description of the error.
CONTEXT_RANGE: int = (source)

Undocumented

Value
20

Undocumented

Undocumented