Throw error
Raise a catchable error with a message and optional code.
Type
err.throw Block Error
Folder
basic/errorChannels
Any
Pipe
Value
Scope
Any
Throw error stops the current path with a catchable error. It never continues on a success outlet. Catch it with a block Error outlet, Try On error, or let the run fail.
It does not raise a fatal error. Fatal stops are reserved for platform limits, internal failures, and unexpected thrown Error values.
Configure
| Setting | Description |
|---|---|
| Message | Text (or a variable) for callers and logs |
| Code | Optional stable code for Branch errors. Default THROWN |
Handles
| Handle | Role |
|---|---|
| In (target) | Incoming connection |
There is no Out handle.
Use case
- After a Condition false branch, fail with
INVALID_STATUSso Branch errors can route it. - Inside Try Do, abort that body and jump to On error.