Core Function Throw

From Sputnik Wiki
Revision as of 23:58, 17 November 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox