Skip to content

RuntimeError

Claude edited this page Oct 27, 2026 · 8 revisions

RuntimeError

Command Index · BlitzBasic · Runtime

RuntimeError message$

Works in: Blitz2D, BlitzPlus, Blitz3D

Shows an error message and ends the program with a non-zero exit code. Use it for problems your program cannot recover from.

If FileType("level.dat") = 0 Then RuntimeError "level.dat is missing"
Parameter Type Default Description
message String required The text that describes what went wrong.

Differences and known gaps:

  • The message is printed as Runtime Error: ... on the standard error output, not shown in a dialog box.

Related commands

Command Index · BlitzBasic · Runtime

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally