DocParseError

DocParseError is thrown when an error occurs while parsing a document.

XXX should be derived from StdError.FileParseError

Base Classes

Methods

__init__(self, txt, src, blk)

   def __init__(self, txt, src = None, blk = None):

Constructs a DocParseError.

txt

exception text

src

Source file. Used to provide error location information.

blk

Block that the exception was thrown during the parsing of (used to provide a block start location.

__str__(self)

   def __str__(self):

Formats the receiver as a string. The string form of a block is the members of the block seperated by whitespace. No leading or trailing whitespace is appended, all nested blocks are recursively converted to strings.