Function addOnError

  • Adds an error handler to our global error queue. the error handler must be of the format function errorListener(<errorData>) with errorData being of following format:

    • errorData.type : "error"
    • errorData.status : the error status message
    • errorData.serverErrorName : the server error name in case of a server error
    • errorData.serverErrorMessage : the server error message in case of a server error
    • errorData.source : the issuing source element which triggered the requestInternal
    • eventData.responseCode: the response code (aka http requestInternal response code, 401 etc...)
    • eventData.responseText: the requestInternal response text
    • eventData.responseXML: the requestInternal response xml

    Parameters

    • errorFunc: ((data: ErrorData) => void)
        • (data: ErrorData): void
        • Parameters

          • data: ErrorData

          Returns void

    Returns void

Generated using TypeDoc