Exceptions: Difference between revisions
Content deleted Content added
Line 1,629: | Line 1,629: | ||
Here is a complicated exceptions example straight from the manual. |
Here is a complicated exceptions example straight from the manual. |
||
This is a |
This is a deliberately 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. |
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. |