Difference between revisions of "API:Sphere.abort"

From Spherical
Jump to: navigation, search
(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...")
 
m
 
Line 24: Line 24:
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
 +
[[Category:Sphere 2 API]]

Latest revision as of 21:23, 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);

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.