Package pyx12 :: Module errh_xml :: Class err_handler
[hide private]

Class err_handler

source code

object --+
         |
        err_handler

The interface to the error handling structures.

Instance Methods [hide private]
 
__init__(self, xml_out=None, basedir=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__del__(self) source code
 
getFilename(self) source code
 
handleErrors(self, err_list) source code
int
getCurLine(self)
Returns: Current file line number
source code
 
Write(self, cur_line)
Generate XML for the segment data and matching map node
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, xml_out=None, basedir=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • xml_out - Output filename, if None, will dump to tempfile
  • basedir - working directory, where file will be created
Overrides: object.__init__

handleErrors(self, err_list)

source code 
Parameters:
  • err_list - list of errors to apply

getCurLine(self)

source code 
Returns: int
Current file line number