tshwara
Handles errors raised inside the preceding
lekablock.
Use tshwara immediately after a leka 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 leka block, the tshwara block is skipped.
Syntax
Section titled “Syntax”leka { ... } tshwara (lebitso) { ... }Examples
Section titled “Examples”leka {
latlha "phoso";
} tshwara (e) {
kwala(e);
}