Common Error Messages for Lightning Experience Methods

An error object is returned as an array for all Lightning Experience methods.

The following fields are contained as part of the error object.

code: {string}

A constant string denoting an error code.

description: {string}

A description of the error code.

details: {object}

Typically undefined. This constant can contain details about the error object for the saveLog method.

Sample error object:

Sample error object for the INVALID_PARAM error code:

Sample error object for the GENERIC_PARAM error code:

Sample error object for the SERVER_ERROR code:

Sample error object for the SOFTPHONE_CONTAINER_ERROR code:

For the runApex method, if there is a server error, the description field provides "Could not load Apex class: apexClassName."

For the saveLog method, the details field provides information based on the type of error. For example: