Skip to content

ON ERROR RESUME NEXT 🟑 BETA

ON ERROR RESUME NEXT makes a script continue after a runtime error.

Where BASIC scripting sits in the Developer guide

What it does

The error forms are registered in crates/botbasic_core/src/keywords/errors/on_error.rs: ON ERROR RESUME NEXT, ON ERROR GOTO, CLEAR ERROR, plus the ERROR and ERR_MESSAGE state values.

Registered forms

ON ERROR RESUME NEXT resumes at the next statement; ON ERROR GOTO branches to a label; CLEAR ERROR resets the error state.

Limits

  • Listed in the closed keyword catalog in botserver/src/basic/keywords/mod.rs; the runtime reference publishes no exact signature for it, so this page does not invent one.
  • Listed in the closed keyword catalog in botserver/src/basic/keywords/mod.rs; the runtime reference publishes no exact signature for it, so this page does not invent one.
  • The keyword reference lists these forms under control flow; no numeric error codes are published here.