Skip to content

Errors and Exceptions

Block name
Block rendering

Throws an error with the error message.
error-throw

Constructs a new error object.
error-new-error

Creates a try/catch/finally block.
error-try-catch
If the logic in the Try section throws an error, it is caught and handled in the Catch with error section. The error variable contains the information about the error. The Finally block is executed after the logic in Try or Catch with error is done processing.