• 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.

    Parameters

    • listenerId: string

      Your listener id (must be unique)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // 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}".`
    )
    }
    )