pascalabcnet/TestSamples/CompilationSamples/DS0005.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

18 lines
272 B
ObjectPascal

type MyException=class(Exception)
constructor create;
begin
inherited Create('MyException');
end;
end;
begin
try
writeln(2);
raise new MyException;
except
on e:myexception do
writeln('Èñêëþ÷åíèå: ',e);
end;
readln;
end.