throw

Syntax

throw [exceptionType], obj

Arguments

obj a string

Details

Raise an user defined exception.

Examples

$ try {if (1%2 == 1) throw "it is an odd"} catch(ex){print ex};
"USER" : "it is an odd"

$ ex;
"USER" : "it is an odd"