| Home | Trees | Index | Help |
|
|---|
| Package epydoc :: Package markup :: Class ParseError |
|
Exception --+
|
ParseError
ColorizingError,
StructuringError,
TokenizationError| Method Summary | |
|---|---|
| |
int
|
Compare two ParseErrors, based on their line number. |
string
|
Return the formal representation of this ParseError. |
string
|
Return a string representation of this ParseError. |
boolean
|
Return true if this is a fatal error. |
int or None
|
Return the line number on which the error occured (including any offset). |
None
|
Set the line number offset for this error. |
Inherited from Exception:
__getitem__
| |
| Instance Variable Summary | |
|---|---|
string |
_descr: A description of the error. |
boolean |
_fatal: True if this is a fatal error. |
int |
_linenum: The line on which the error occured within the docstring. |
int |
_offset: The line number where the docstring begins. |
| Method Details |
|---|
__init__(self,
descr,
linenum=None,
is_fatal=1)
|
__cmp__(self,
other)
Compare two |
__repr__(self)
Return the formal representation of this |
__str__(self)
Return a string representation of this |
is_fatal(self)
|
linenum(self)
|
set_linenum_offset(self, offset)Set the line number offset for this error. This offset is the line number where the docstring begins. This offset is added to_linenum when displaying the line number of the error.
|
| Instance Variable Details |
|---|
_descrA description of the error.
|
_fatalTrue if this is a fatal error.
|
_linenumThe line on which the error occured within the docstring. The linenum of the first line is 0.
|
_offsetThe line number where the docstring begins. This offset is added to_linenum when displaying the line number of the error.
Default value: 1.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Sat Mar 20 17:46:13 2004 | http://epydoc.sf.net |