The GetLastCaughtErrors Method

Previous Next

See Also

The internal Rules Engine GetLastCaughtErrors method returns a string containing all the error messages caught in the active error catching session. It is therefore a good idea to call this method just before you call the StopCatchingErrors() method. If you call the GetLastCaughtErrors after calling the StopCatchingErrors() method, 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.

The syntax is:

SELECT RulesEngine.GetLastCaughtErrors()

There are no input parameters, and one return parameter. The return parameter is a string containing the error messages. If no errors occurred since the last time the StartCatchingErrors method was called, NULL is returned.