Raise/de
Zurück zu den reservierten Wörtern.
Das reservierte Wort raise:
- gehört zur objektorientierten Programmierung
- reicht eine Exception weiter
- löst eine selbstdefinierte Exception aus
Beispiel 1:
...
except
raise; // Weiterreichen der 'gefangenen' Exception
...Beispiel 2:
...
except
raise EException.Create; // Eigene (vorher deklarierte) Exception auslösen
...From the Free Pascal wiki, page "Raise/de", as it stood on 2020-02-23 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.