GetExtendedError Method (XDATA)


9.8A

 

The GetExtendedError method returns the extended error information from the last LoadJson or LoadXml method that returned a parsing error defined by XDATA_ERR_PARSE (i.e., error value 14 ). The method uses the following format:

 

[label]

{object}.GetExtendedError

[GIVING {return}][:

 

 

USING [*Options=]{mask}]

Where:

label
Optional. A Program Execution Label.
object
Required. An XDATA object.
return
Optional. A Character String Variable that receives the string value for a DOM_PROCESSING_INSTRUCTION_NODE node.
mask
Optional. A Numeric Variable or decimal number that specifies a bit mask value to control the operations of this method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO and OVER flags are set FALSE.

  2. The EOS flag is set TRUE if the data string value must be truncated to be stored into the {return} variable.

  3. If the data string exists, the {return} contains the string data. Otherwise, the {return} variable is set NULL.

  4. The *OPTIONS {mask} values are defined as follows:

  5.  

    Keyword

    Value

    Description

    XDATA_CLEAR_ERROR

    0x1

    This bit value causes the current extended error buffer to be cleared upon completion of this method.

 

 

See Also: XDATA, XDATA Methods, Method Syntax



PL/B Language Reference GetData Method (XDATA) GetJsonType Method (XDATA)