CtlPanel.TAppletApplication.OnException

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

property OnException: TOnAppletExceptionEvent read FOnException write FOnException;

C++

__property TOnAppletExceptionEvent OnException = {read=FOnException, write=FOnException};

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
event public
CTLPanel.pas
CtlPanel.hpp
CtlPanel TAppletApplication


Beschreibung

Tritt auf, wenn eine von der Anwendung ausgelöste Exception nicht behandelt wird..

Mit OnException ändern Sie das Standardverhalten für vom Anwendungscode nicht behandlete Exceptions. Durchläuft eine Exception die try-Blöcke des Programms, wird automatisch die Methode HandleException aufgerufen. Wenn diese Methode auf eine Exception trifft, die von Exception abstammt, erzeugt sie ein OnException-Ereignis. Wenn keine OnException-Ereignisbehandlungsroutine vorhanden ist oder das Exception-Objekt nicht von Exception abstammt, zeigt das Applet ein Meldungsfenster mit einer Fehlermeldung an.

Siehe auch