RosettaCodeData/Task/Exceptions/Langur/exceptions-2.langur

12 lines
148 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
100 / 0
catch {
2024-04-19 16:56:29 -07:00
if _err'cat == "math" {
2023-07-01 11:58:00 -04:00
# change result
123
} else {
2024-04-19 16:56:29 -07:00
# rethrow the exception
2023-07-01 11:58:00 -04:00
throw
}
}