throw

throw用于抛出一个用户定义的异常

例子

$ 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"