Your listener id (must be unique)
Your listener function
// log a message in the console when a fatal error occurs
JMap.Event.Main.on.fatalError(
"custom-core-fatal-error",
(params) => {
console.log(`A fatal error occured in JMap.
** Context of the error: "${params.context}";
** information about the error: "${params.source}";
** consequence of the error: "${params.action}".`
)
}
)
JMap.Event.Main.on.fatalError
This event is triggered when a fatal error occurs in JMap. The event parameters will give you information about the error.