[show private | hide private]

epydoc.epytext
Class epydoc.epytext.ColorizingError

Exception --+    
            |    
   ParseError --+
                |
               ColorizingError


A warning or error generated while colorizing a paragraph.
Method Summary
  __init__(self, descr, token, charnum)
Construct a new colorizing exception.
int __cmp__(self, other)
Compare two ParseErrors, based on their line number. (inherited from ParseError)
string __repr__(self)
Return the formal representation of this ParseError. (inherited from ParseError)
string __str__(self)
Return the informal string representation of this ParseError. (inherited from ParseError)
string as_error(self)
Return a string representation of this ParseError. (inherited from ParseError)
string as_warning(self)
Return a string representation of this ParseError. (inherited from ParseError)

Instance Variable Summary
int charnum - The index into the paragraph's contents of the character where the ColorizingError occured.
Token token - The Token where the ColorizingError occured.

Method Details

Constructor

__init__(self, descr, token, charnum)

Construct a new colorizing exception.
Parameters:
descr - A short description of the error.
           (type=string)
token - The token where the error occured
           (type=Token)
charnum - The character index of the position in token where the error occured.
           (type=int)

Instance Variable Details

charnum

The index into the paragraph's contents of the character where the ColorizingError occured.
Type: int

token

The Token where the ColorizingError occured.
Type: Token

Generated by Epydoc on Sun Oct 6 03:32:11 2002 http://epydoc.sf.net