Swiftybase
Function StackCustom Function

Throw Exception

Creates and throws a new exception, interrupting the normal flow of execution in your function stack.

Purpose

Use this function when you need to explicitly trigger an error condition based on your business logic requirements. The thrown exception will halt the current execution and can be caught by appropriate error handling mechanisms.

Config

You can configure the exception with:

  • Message: A descriptive error message explaining what went wrong

Throw Exception

To handle exceptions, use the Catch Exception function at the root of your function stack. This allows you to implement custom error handling logic. For more details, see the Catch Exception documentation.

On this page