xml.DomDocument.getErrorDescription
Returns the error description at the given position.
Syntax
getErrorDescription(
index INTEGER )
RETURNS STRING
- index defines the position of the error description (index starts at 1).
Usage
This method returns the error description at the given position. index is the position of the error description (index starts at 1). It returns a string with an error description.
Important: This method is not part of W3C standard
API.
Example error management
FOR i=1 TO doc.getErrorsCount()
DISPLAY "[", i, "] ", doc.getErrorDescription(i)
END FOR
Displays
all the errors encountered in the save, load, or validate of the doc
DomDocument.To display other errors, use the global variable STATUS to get the error code and
err_get(status)
or SQLCA.SQLERRM
to get the description of the
error. See error code for more details.