Extend the throw
statement to support an optional expression. The new formal grammar will be:
throw_statement ::=
throw[ /literal_expression/];
When specified and the expression evaluates to a string containing any non-whitespace characters, the expression should be written to the current log scope as an error message.
This is essentially a shorthand for Log-Error
.