RosettaCodeData/Task/Exceptions/Aikido/exceptions-2.aikido

8 lines
96 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
if (error) {
throw "Error"
}
if (something) {
throw new MyException (errorcode, a, b)
}