API:Sphere.abort

From Spherical
Revision as of 21:23, 3 January 2019 by Eggbert (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

API Level: 1

The Sphere.abort() Core API function aborts execution of the game and displays the given message.

Usage
Sphere.abort(message);

Description

Sphere.abort() is effectively a forced crash: JavaScript execution will cease immediately, and the exception screen will be shown displaying `message`.

Note: Sphere.abort() bypasses all exception handling mechanisms, including the debugger if it's attached. Be sure you know what you're doing!

Parameters

message The message to be shown.