Core Function Throw
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Throw( <expression> ) </pre> === Description === Throw an exception causing the program to end (Unless the exception is captured in a TRY statement see example). ==== ex...")
Newer edit →
(Created page with "<pre> Throw( <expression> ) </pre> === Description === Throw an exception causing the program to end (Unless the exception is captured in a TRY statement see example). ==== ex...")
Newer edit →
Revision as of 23:58, 17 November 2011
Throw( <expression> )
Contents |
Description
Throw an exception causing the program to end (Unless the exception is captured in a TRY statement see example).
expression
The string to say the reason why an exception was thrown.
Return Value
None.
Remarks
N/A
Example
println("Hello Begin"); try { println("Hello Try..."); throw("CRASH NOW"); } catch { println("Hello from catch yes there was an error"); } finally { println("Hello finally..."); } println("Hello end");