API:Sphere.abort

From Spherical
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.