Skip to main content

Throw error

Raise an error with a code of your choice, for a Catch (or On error) to handle.

Command in the Core toolkit · id core/throw · 5 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
CodeStringYesError code, e.g. BUSINESS.INVOICE_DUPLICATE.
MessageStringNoWhat went wrong, for the log and the Catch; the code when empty.
Suggested fixStringNoHow to resolve the error.
DetailsDictionaryNoExtra values carried with the error, readable in Catch.
RetryableBooleanNofalseMark the error as temporary so retry policies try the step again.