Difference between revisions of "API:Sphere.abort"
From Spherical
(Created page with "{{DISPLAYTITLE:Sphere.abort()}} ''API Level: 1'' The '''<tt>Sphere.abort()</tt>''' Core API function aborts execution of the game and displays the given mes...") |
(No difference)
|
Revision as of 20:57, 3 January 2019
API Level: 1
The Sphere.abort() Core API function aborts execution of the game and displays the given message.
Usage
Sphere.abort(message);
Contents
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. |