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
- Index
- Enumeration members
- CONFLICTING_ACTIONS_CONFIG
- CONFLICTING_TABS_CONFIG
- CUSTOM_ACTION_VALIDATION
- DRILLDOWN_INVALID_PAYLOAD
- HOST_EVENT_TYPE_UNDEFINED
- HOST_EVENT_VALIDATION
- INIT_ERROR
- INVALID_URL
- LIVEBOARD_ID_MISSING
- LOGIN_FAILED
- NETWORK_ERROR
- PARSING_API_INTERCEPT_BODY_ERROR
- RENDER_NOT_CALLED
- UPDATEFILTERS_INVALID_PAYLOAD
- UPDATEPARAMETERS_INVALID_PAYLOAD
- UPDATE_PARAMS_FAILED
- WORKSHEET_ID_NOT_FOUND
Version : SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
Error codes for identifying specific issues in embedded ThoughtSpot components. Use EmbedErrorDetailsEvent and ErrorDetailsTypes codes for precise error handling and debugging.
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
DRILLDOWN_INVALID_PAYLOAD🔗
DRILLDOWN_INVALID_PAYLOAD:= "DRILLDOWN_INVALID_PAYLOAD"
DrillDown payload is invalid - missing or malformed points
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
HOST_EVENT_VALIDATION🔗
HOST_EVENT_VALIDATION:= "HOST_EVENT_VALIDATION"
Host event payload validation failed
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
UPDATEFILTERS_INVALID_PAYLOAD🔗
UPDATEFILTERS_INVALID_PAYLOAD:= "UPDATEFILTERS_INVALID_PAYLOAD"
UpdateFilters payload is invalid - missing or malformed filter/filters
Defined in : types.ts
UPDATEPARAMETERS_INVALID_PAYLOAD🔗
UPDATEPARAMETERS_INVALID_PAYLOAD:= "UPDATEPARAMETERS_INVALID_PAYLOAD"
UpdateParameters payload is invalid - malformed applicability
Defined in : types.ts