Difference between revisions of "Except"

From Free Pascal wiki
Jump to navigationJump to search
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Except}}
 
{{Except}}
  
<syntaxhighlight lang="pascal" enclose="none">except</syntaxhighlight> is a [[Reserved word|reserved word]] that is only used in conjunction with [[Try|try]].
+
<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" enclose="none">on</syntaxhighlight>]], [[Do|<syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>]], and [[End|<syntaxhighlight lang="pascal" enclose="none">end;</syntaxhighlight>]].
+
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 ==
 +
* [[Finally]]
 +
* [[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;.

See also