Difference between revisions of "Except"
From Free Pascal wiki
Jump to navigationJump to search (Undo revision 131951 by Trev (talk): linking _one_ _static_ page as a “back page” does not make sense, as there are many pages linking here) Tag: Undo |
|||
Line 1: | Line 1: | ||
{{Except}} | {{Except}} | ||
− | <syntaxhighlight lang="pascal" | + | <syntaxhighlight lang="pascal" inline>except</syntaxhighlight> is a [[Reserved word|reserved word]] that is only used in conjunction with [[Try|try]]. |
[[Exceptions|exception]] handling: | [[Exceptions|exception]] handling: | ||
Line 13: | Line 13: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | also requires auxiliary [[Keyword|keywords]] [[On|<syntaxhighlight lang="pascal" | + | also requires auxiliary [[Keyword|keywords]] [[On|<syntaxhighlight lang="pascal" inline>on</syntaxhighlight>]], [[Do|<syntaxhighlight lang="pascal" inline>do</syntaxhighlight>]], and [[End|<syntaxhighlight lang="pascal" inline>end;</syntaxhighlight>]]. |
== See also == | == See also == | ||
* [[Finally]] | * [[Finally]] | ||
* [[runtime error|run-time error]] | * [[runtime error|run-time error]] |
Latest revision as of 17:24, 6 August 2022
│
Deutsch (de) │
English (en) │
suomi (fi) │
except
is a reserved word that is only used in conjunction with try.
exception handling:
try
…
except
on … do …
end;
also requires auxiliary keywords on
, do
, and end;
.