Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpl-opus!hpccc!hp-ses!hpcuhb!hpcllla!hpclisp!hpcllmr!mark From: mark@hpcllmr.HP.COM (Mark Rozhin) Newsgroups: comp.lang.pascal Subject: Re: Pascal Exception Handling Message-ID: <950024@hpcllmr.HP.COM> Date: 23 Mar 89 19:17:03 GMT References: <236@bk.dk> Organization: Hewlett-Packard Calif. Language Lab Lines: 25 the draft for ansi extended pascal contains nothing on exception handling. hewlett-packard pascal has defined a structured statement called try/recover. anything that goes wrong in the try part of the statement (including anything called from the try part) casues execution to 'jump' to the recover part. this gives you a nice envelope to enclose any code. there are some predefined routine to cause an error (called an escape) explicitly and to find out what the last error was. for example: try if () then escape( ); recover case escapecode of let me know if you want to know more. m