<SPAN CLASS="TOKEN" >exception</SPAN > expressions

Sather - Language Specification
Prev | Chapter 10. Exceptions | Next

# 10.3. exception expressions

Example 10-3. Example:

    exception

    except_expression ==>
            exception

exception expressions may only appear within the statements of the then and else clauses in protect statements. They return the exception object that caused the when branch to be taken in the most tightly enclosing protect statement. The return type is the type specified in the corresponding when clause (See protect statements). In an else clause the return type is '$OB'.

Prev | Home | Next
raise statements | Up | Safety Features