Newer Version Available

This content describes an older version of this product. View Latest

lightning:omniChannelConnectionError

Indicates that a network connection issue occurred.

Response

Name Type Description
error object The network connection error message.

Example

This example prints a line to the browser’s developer console when a network connection error occurs.

Component code:

1<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
2    <lightning:omniToolkitAPI aura:id="omniToolkit" />  
3    <aura:handler event="lightning:omniChannelConnectionError" action="{! c.onConnectionError }"/>
4</aura:component>

Controller code:

1({
2    onConnectionError : function(component, event, helper) {
3        console.log("Network Connection Error.");
4        var error = event.getParam('error');
5        console.log(error);
6    }, 
7})