throw
throw用于抛出一个用户定义的异常
例子
try {if (1%2 == 1) throw "it is an odd"} catch(ex){print ex};
// output
"USER" : "it is an odd"
ex;
// output
"USER" : "it is an odd"
throw用于抛出一个用户定义的异常
try {if (1%2 == 1) throw "it is an odd"} catch(ex){print ex};
// output
"USER" : "it is an odd"
ex;
// output
"USER" : "it is an odd"