catchSets
Handles errors raised inside the preceding
trySetsblock.
Use catchSets immediately after a trySets block. The parenthesised binding (e.g. (e)) receives the thrown value so your code can inspect or report it. If no error occurs in the trySets block, the catchSets block is skipped. This is a placeholder Setswana name — the canonical Setswana translation will be chosen later.
Syntax
Section titled “Syntax”trySets { ... } catchSets (lebitso) { ... }Examples
Section titled “Examples”trySets {
throwSets "phoso";
} catchSets (e) {
kwala(e);
}