Your listener id (must be unique)
Your listener function
// log a message in the console if a simple search error occured
JMap.Event.SimpleSearch.on.error(
"custom-simple-search-error",
params => console.log("A simple search has failed", params)
)
JMap.Event.SimpleSearch.on.error
This event is triggered when a simple search has been processed, but an error occured.