Core Function Throw
From Sputnik Wiki
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");