RosettaCodeData/Task/Exceptions/DWScript/exceptions-2.dw

12 lines
242 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
procedure Test2;
begin
try
test;
except
on E: Exception do begin // Filter by exception class
PrintLn(E.Message); // Showing exception message
raise; // Rethrowing
end;
end;
end;