SETSWANA TRANSLATION: Skip to content

throwSets

SETSWANA TRANSLATION: Raises an error value to be handled by a surrounding catchSets.

SETSWANA TRANSLATION: Use throwSets to raise an error from inside a trySets block. The thrown value (a string, number, or object) is passed to the matching catchSets binding. This is a placeholder Setswana name — the canonical Setswana translation will be chosen later.

SETSWANA TRANSLATION: throwSets boleng;
SETSWANA TRANSLATION: Throw a string and catch it
trySets {
  throwSets "phoso";
} catchSets (e) {
  kwala(e);
}

trySets, catchSets, finallySets