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

8 lines
96 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
if (error) {
throw "Error"
}
if (something) {
throw new MyException (errorcode, a, b)
}