• JMap.Event.Query.on.error

    This event is triggered when a query has been processed, but an error occured.

    If the max result limit is reach, an error is thrown, and this event is triggered.

    Parameters

    • listenerId: string

      Your listener id (must be unique)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // log a message in the console if a query error occured
    JMap.Event.Query.on.error(
    "custom-query-error",
    params => console.log("A query to the server has failed", params)
    )