Skip to content

Try/Catch — Reference

Reference · Advanced · Server Connect

Handle exceptions from a nested server workflow.

Handle exceptions from a nested server workflow.

  • An open Server Connect action. Runtime differences below refer to the installed Node.js and PHP implementations.

Handle exceptions from a nested server workflow.

Setting Meaning
TryThe steps that may throw. Normal successful execution skips Catch.
CatchThe steps to run after an exception. The error message is available as $_ERROR. Node.js also exposes $_EXCEPTION; do not assume that extra object is available in PHP.

Put Throw Error with Message Test failure inside Try. In Catch, return a controlled error response or set an output flag. Run once with the throw present and once with a successful step to verify both branches.

A remote API step configured to forward errors may send a response instead of producing an exception to catch. Configure its error flags deliberately. Catching an exception does not undo earlier side effects.

Use the Server Connect guides when you need the surrounding project, data-loading or form procedure.

You can configure Try/Catch deliberately and verify the result and failure behavior described in this reference.