Sidebar

How to use errorManager.searchErrors() to return errors that contain the given text?

0 votes
366 views
asked Jun 9, 2016 by rich-c-2789 (16,240 points)
I need to check for errors that contain the following error message "The server is currently busy".

1 Answer

0 votes

To do a contains search use the "error=" predicate.

var searchText = 'error=The server is currently busy';
var results = errorManager.searchErrors(searchText);
qie.debug('searchErrors returned ' + results.size() + ' messageQueueIds.');
qie.debug('The messageQueueIds returned: ' + results);
This will search for the text that follows the "error=" in the error details.
 
Also see these related questions:

 

 

 

answered Jun 9, 2016 by rich-c-2789 (16,240 points)
...