embed.on(EmbedEvent.Error, (error) => {
switch (error.code) {
case EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND:
console.error('Worksheet ID not found:', error.message);
break;
case EmbedErrorCodes.LIVEBOARD_ID_MISSING:
console.error('Liveboard ID is missing:', error.message);
break;
case EmbedErrorCodes.CONFLICTING_ACTIONS_CONFIG:
console.error('Conflicting actions configuration:', error.message);
break;
case EmbedErrorCodes.CONFLICTING_TABS_CONFIG:
console.error('Conflicting tabs configuration:', error.message);
break;
default:
console.error('Unknown error:', error);
}
});
EmbedErrorCodes
Error codes for identifying specific issues in embedded ThoughtSpot components. Use EmbedErrorDetailsEvent and ErrorDetailsTypes codes for precise error handling and debugging.
Version : SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
Handle specific error codes in the error event handler
Index🔗
Enumeration members🔗
CONFLICTING_ACTIONS_CONFIG🔗
CONFLICTING_ACTIONS_CONFIG:= "CONFLICTING_ACTIONS_CONFIG"
Conflicting action configuration detected
Defined in : types.ts
CONFLICTING_TABS_CONFIG🔗
CONFLICTING_TABS_CONFIG:= "CONFLICTING_TABS_CONFIG"
Conflicting tab configuration detected
Defined in : types.ts
CUSTOM_ACTION_VALIDATION🔗
CUSTOM_ACTION_VALIDATION:= "CUSTOM_ACTION_VALIDATION"
Custom action validation failed
Defined in : types.ts
HOST_EVENT_TYPE_UNDEFINED🔗
HOST_EVENT_TYPE_UNDEFINED:= "HOST_EVENT_TYPE_UNDEFINED"
Host event type is undefined or invalid
Defined in : types.ts
INIT_ERROR🔗
INVALID_URL🔗
LIVEBOARD_ID_MISSING🔗
LIVEBOARD_ID_MISSING:= "LIVEBOARD_ID_MISSING"
Required Liveboard ID is missing from configuration
Defined in : types.ts
NETWORK_ERROR🔗
PARSING_API_INTERCEPT_BODY_ERROR🔗
PARSING_API_INTERCEPT_BODY_ERROR:= "PARSING_API_INTERCEPT_BODY_ERROR"
Error parsing api intercept body
Defined in : types.ts
RENDER_NOT_CALLED🔗
RENDER_NOT_CALLED:= "RENDER_NOT_CALLED"
Render method was not called before attempting to use the component
Defined in : types.ts