RulesEngine.GetLastCaughtErrorsAsXML

Previous Next

Reports all error messages caught in the active error catching session, using XML as a format. To get the result in plain text, use the GetLastCaughtErrors method instead.

Returns an XML document.

Call this method just before you call the StopCatchingErrors method. If you call it AFTER calling StopCatchingErrors, and there is another (parent) catching session running, you will not get the error messages of your (stopped) session, but of the other session that is still running.

Syntax

SELECT RulesEngine.GetLastCaughtErrorsAsXML()

The return XML document looks like this:

<uslng:messages>
  <uslng:message>...</uslng:message>
  <uslng:message>...</uslng:message>
  ...
</uslng:messages>

If no errors occurred in the active error catching session, the return value is:

<uslng:messages/>

 

 

See also

RulesEngine.GetLastCaughtErrors

RulesEngine internal component