Exceptions: Difference between revisions

Line 1,629:
Here is a complicated exceptions example straight from the manual.
 
This is a deliberatedeliberately convoluted way to process input consisting of lines which have the form: <pre>{monkey | gorilla | human} <name></pre>
 
Some custom exceptions are defined, and arranged into a hierarchy via @(defex) directives. An exception precedence hierarchy is established. A gorilla is a kind of ape, and an ape is a kind of primate. A monkey is a kind of primate, and so is a human.
Anonymous user