Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Action.Error Class

Contains methods to retrieve errors returned by invocable actions.

Namespace

Invocable

Action.Error Methods

These methods are for Action.Error.

clone()

Creates a copy of the Invocable.Action.Error.

Signature

public Object clone()

Return Value

Type: Object

getCode()

Gets the error code returned by an invocable action.

Signature

public String getCode()

Return Value

Type: String

getMessage()

Gets the error message returned by an invocable action.

Signature

public String getMessage()

Return Value

Type: String