Package pyx12 :: Module error_handler :: Class err_seg
[hide private]

Class err_seg

source code

object --+    
         |    
  err_node --+
             |
            err_seg

Segment Errors

Instance Methods [hide private]
 
__init__(self, parent, map_node, seg_data, seg_count, cur_line, ls_id)
Needs:
source code
 
accept(self, visitor)
Params: visitor - ref to visitor class
source code
 
add_error(self, err_cde, err_str, err_value=None) source code
 
err_count(self)
Returns: count of errors
source code
 
get_error_count(self) source code
 
child_err_count(self) source code
 
next(self)
Desc: Return the next error node
source code
 
__repr__(self)
repr(x)
source code
 
get_first_child(self) source code

Inherited from err_node: get_cur_line, get_error_list, get_id, get_next_sibling, get_parent, is_closed

Inherited from err_node (private): _get_last_child

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, map_node, seg_data, seg_count, cur_line, ls_id)
(Constructor)

source code 

Needs:

  1. seg_id_code
  2. seg_pos - pos in ST loop 3, loop_id - LS loop id
  1. seg_count - in parent
Overrides: object.__init__

accept(self, visitor)

source code 

Params: visitor - ref to visitor class

Overrides: err_node.accept

add_error(self, err_cde, err_str, err_value=None)

source code 
Parameters:
  • err_cde (string) - Error code
  • err_str (string) - Description of the error

get_error_count(self)

source code 
Overrides: err_node.get_error_count
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

get_first_child(self)

source code 
Overrides: err_node.get_first_child
(inherited documentation)