GetLastError

From SoftIVR

Jump to: navigation, search

getLastError

getLastError() return textual information about the last error encountered.

Parameters

  • None

Return value

A textual representation of the last error encountered.

Example

This example shows what happens when invalid XML is passed to the XML parser:

x = "<xml><tag>data</xml>";
if (!parseXML(x)) { 
  log(getLastError());
}

generates

End tag mismatch (xml != tag) [Ln: 1, Col: 19]

in the IVR log.

Personal tools