RosettaCodeData/Task/Exceptions/Langur/exceptions-1.langur
2024-07-13 15:19:22 -07:00

12 lines
188 B
Text

throw "not a math exception"
catch[e] {
if e'cat == "math" {
# change result...
} else {
# rethrow the exception
throw
}
} else {
# no exception
}