class documentation

class ColorizingError(ParseError):

View In Hierarchy

An error generated while colorizing a paragraph.
Method __init__ Construct a new colorizing exception.
Method descr
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:: <ParseError on line 12>
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
Method linenum
Instance Variable ​_descr Undocumented
Instance Variable ​_fatal Undocumented
Instance Variable ​_linenum Undocumented
def __init__(self, descr, token, charnum, is_fatal=True):
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):
Returns
strA description of the error.
CONTEXT_RANGE: int =

Undocumented

Value
20
charnum =

Undocumented

token =

Undocumented