Except: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 1 | + | `except` is a [[Reserved word|reserved word]] that is only used in conjunction with [[Try|try]]. | |
| 2 | 2 | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 6 | - | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 3 | + | [[Exceptions|exception]] handling: | |
| 4 | + | ||
| 5 | + | ``` pascal | |
| 6 | + | try | |
| 7 | + | … | |
| 8 | + | except | |
| 9 | + | on … do … | |
| 10 | + | end; | |
| 10 | 11 | ``` | |
| 11 | 12 | ||
| 12 | - | ||
| 13 | + | also requires auxiliary [[Keyword|keywords]] [[On|on]], [[Do|do]], and [[End|end;]]. | |
| 13 | 14 | ||
| 14 | 15 | ## See also | |
| 15 | 16 | ||
| 16 | - | ||
| 17 | - | ||
| 17 | + | - [[Finally]] | |
| 18 | + | - [[runtime error|run-time error]] | |
| 18 | 19 | ||
| 19 | 20 | --- | |
| 20 | - | ||
| 21 | + | *From the Free Pascal wiki, page "Except", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
