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

type 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: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __setattr__, __setstate__

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

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

Properties [hide private]

Inherited from exceptions.BaseException: args, message

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.BaseException.__init__

descr(self)

source code 
Overrides: ParseError.descr