throw
throw type message
Gives an error with the error code type and the message. try with trap matches the start of type.
Examples
A click on an example runs it in the shell of the page.
try {throw {JOT EMPTY} "no text"} trap {JOT} {msg} {set msg}:no text
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.