Package epydoc :: Package markup :: Module epytext :: Class ColorizingError
[hide private]
[frames] | no frames]

Class ColorizingError

source code


An error generated while colorizing a paragraph.

Instance Methods [hide private]
 
__init__(self, descr, token, charnum, is_fatal=1)
Construct a new colorizing exception.
source code
 
descr(self) source code

Inherited from ParseError: __cmp__, __repr__, __str__, is_fatal, linenum, set_linenum_offset

Inherited from exceptions.Exception: __getitem__

Class Variables [hide private]
  CONTEXT_RANGE = 20
Instance Variables [hide private]

Inherited from ParseError (private): _descr, _fatal, _linenum, _offset

Method Details [hide private]

__init__(self, descr, token, charnum, is_fatal=1)
(Constructor)

source code 

Construct a new colorizing exception.

Parameters:
  • descr (string) - A short description of the error.
  • token (Token) - The token where the error occured
  • charnum (int) - The character index of the position in token where the error occured.
Overrides: exceptions.Exception.__init__

descr(self)

source code 
Overrides: ParseError.descr