throwSets
Raises an error value to be handled by a surrounding
catchSets.
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.
Syntax
Section titled “Syntax”throwSets boleng;Examples
Section titled “Examples”trySets {
throwSets "phoso";
} catchSets (e) {
kwala(e);
}