Exception trigger example |
Smart pascal source code
procedure Trigger; begin raise Exception.Create(''); end; try try Trigger; WriteLn('Never here!'); except WriteLn('Caught once'); raise; WriteLn('Missed!'); end; except WriteLn('Caught again'); end; WriteLn('Ended'); { <<< CONSOLE OUTPUTS >>> Caught once Caught again Ended }