customError

Represents a custom error.

new CustomError(param)

FieldTypeDescription
paramobjectContains the parameters associated with the custom error message.
param.labelNamestringThe name of the custom label in your org. This name is defined when you create the custom label for the error message.
param.namespacestringThe alphanumeric identifier of your Salesforce org’s namespace prefix. The namespace is a part of the label that makes up the required full name used for managed packages. The full name is <namespace.labelName>. If you don’t have a namespace prefix, set this value to C.
param.messageCallInfoOptional. Additional details about the message for logging purposes. This field is optional and is not exposed.