pyx12.errh_xml¶
Capture X12 Errors
Exceptions¶
Class for errh_null errors. |
Classes¶
The interface to the error handling structures. |
|
A null error object - used for testing. |
Module Contents¶
- class pyx12.errh_xml.err_handler(xml_out=None, basedir=None)[source]¶
The interface to the error handling structures.
- Parameters:
- logger: logging.Logger[source]¶
- close()[source]¶
Flush remaining XML closing tags and close the underlying file. Idempotent.
- Return type:
None
- exception pyx12.errh_xml.ErrorErrhNull[source]¶
Bases:
ExceptionClass for errh_null errors.
Initialize self. See help(type(self)) for accurate signature.
- class pyx12.errh_xml.errh_list[source]¶
A null error object - used for testing. Stores the current error in simple variables.
- logger: logging.Logger[source]¶
- isa_error(err_cde, err_str)[source]¶
- Parameters:
err_cde (string) – ISA level error code
err_str (string) – Description of the error
- Return type:
None
- gs_error(err_cde, err_str)[source]¶
- Parameters:
err_cde (string) – GS level error code
err_str (string) – Description of the error
- Return type:
None
- st_error(err_cde, err_str)[source]¶
- Parameters:
err_cde (string) – Segment level error code
err_str (string) – Description of the error
- Return type:
None
- ele_error(err_cde, err_str, bad_value)[source]¶
- Parameters:
err_cde (string) – Element level error code
err_str (string) – Description of the error
bad_value (str | None)
- Return type:
None