xml.DomDocument.getErrorDescription

Returns the error description at given position.

Syntax

getErrorDescription(
   pos INTEGER )
  RETURNING desc STRING   
  1. pos is the position of the error description (index starts at 1).

Usage

Returns the error description at given position. pos is the position of the error description (index starts at 1). Returns a string with an error description.

CAUTION:
Not part of W3C API

Example

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 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.