Skip to content

Throw Statement

Throw statements can be used to propogate exceptions. This is done using the throw keyword.

Syntax
throw expr;
Example
throw "Hello World!";
throw Exception.new("Oops!");