14 lines
215 B
Text
14 lines
215 B
Text
# do something
|
|
throw "not a math exception"
|
|
|
|
catch .e {
|
|
if .e["cat"] == "math" {
|
|
# change result...
|
|
} else {
|
|
# rethrow the exception
|
|
throw
|
|
}
|
|
} else {
|
|
# no exception
|
|
...
|
|
}
|