Hallo, folgende Struktur:
Delphi-Quellcode:
try
with TSomeClass.Create
do
try
SomeMethod;
SomeMethodThatThrows;
//wirft Exception!
finally
Free;
end;
except
on E:
Exception do
ShowmEssage(E.
Message);
end;
Ich will eine Fehler bei der Erstellung der Klasse abfangen - innerhalb des try...finally-blocks interessieren mich keine Exceptions.
Klappt das oder kommt die
Exception, die ich oben markiert hab, aus dem try...finally-block irgendwie raus?
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1