catchSets
SETSWANA TRANSLATION: Handles errors raised inside the preceding
trySetsblock.
SETSWANA TRANSLATION: 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.
SETSWANA TRANSLATION: Syntax
SETSWANA TRANSLATION: Section titled “SETSWANA TRANSLATION: Syntax”SETSWANA TRANSLATION: trySets { ... } catchSets (lebitso) { ... }SETSWANA TRANSLATION: Examples
SETSWANA TRANSLATION: Section titled “SETSWANA TRANSLATION: Examples”trySets {
throwSets "phoso";
} catchSets (e) {
kwala(e);
}