Sign in Join
Wiki copytemporary

Raise/de: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Raise/de

OldNewLine
1+Zurück zu den [[Reserved words/de|reservierten Wörtern]].
2+
3+Das reservierte Wort <b>raise</b>:
4+
5+- gehört zur objektorientierten Programmierung
6+- reicht eine Exception weiter
7+- löst eine selbstdefinierte Exception aus
8+
9+Beispiel 1:
10+
11+``` pascal
12+ ...
13+ except
14+ raise; // Weiterreichen der 'gefangenen' Exception
15+ ...
16+```
17+
18+Beispiel 2:
19+
20+``` pascal
21+ ...
22+ except
23+ raise EException.Create; // Eigene (vorher deklarierte) Exception auslösen
24+ ...
25+```
26+
27+---
28+*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](/wiki-contact).*

Back to history