Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Exceptions/Delphi/exceptions-1.delphi
Normal file
4
Task/Exceptions/Delphi/exceptions-1.delphi
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
procedure test;
|
||||
begin
|
||||
raise Exception.Create('Sample Exception');
|
||||
end;
|
||||
9
Task/Exceptions/Delphi/exceptions-2.delphi
Normal file
9
Task/Exceptions/Delphi/exceptions-2.delphi
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
procedure test2;
|
||||
begin
|
||||
try
|
||||
test;
|
||||
except
|
||||
ShowMessage(Exception(ExceptObject).Message); // Showing exception message
|
||||
raise; // Rethrowing
|
||||
end;
|
||||
end;
|
||||
8
Task/Exceptions/Delphi/exceptions-3.delphi
Normal file
8
Task/Exceptions/Delphi/exceptions-3.delphi
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
procedure test3;
|
||||
begin
|
||||
try
|
||||
test2;
|
||||
finally
|
||||
ShowMessage('test3 finally');
|
||||
end;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue