throw Syntax throw [exceptionType], obj Arguments obj is a string Details Raise a user-defined exception. Examples 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"
Examples 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"