Skip to content

RuntimeError

Narta Xaymar Dirks edited this page Nov 25, 2026 · 10 revisions

RuntimeError BlitzBasic

RuntimeError:Void message:String
Parameter Mode Type Default Description
message In String required The text that describes what went wrong.

Description

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

Differences

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

Examples

If FileType("level.dat") = 0 Then RuntimeError "level.dat is missing"

Related Commands

ProfileSlow BlitzLLVM, ProfileValue BlitzLLVM, RuntimeStats BlitzBasic, SetEnv BlitzBasic

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally