Autor Beitrag
Jojojoxx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 386



BeitragVerfasst: Di 18.09.07 11:33 
Hallo!

Ich möchte bei einer IdHTTPServer-Komponente die Exceptions abfangen und abhängig vom Fehlercode darauf reagieren.
Dazu wollte ich das Ereignis OnException benutzen. Die Variable "AException" ist vom Typ Exception. Wie kann ich damit den Fehler ermitteln? Gleichsetzen mit dem Fehlercode klappt nicht, da inkompatible Typen.
Danke für die Hilfe!
mfg

Jojo
Jojojoxx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 386



BeitragVerfasst: Di 18.09.07 23:53 
Hat da wirklich niemand eine Idee zu?
mfg

Jojo
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 19.09.07 08:56 
Die Exception hat eine bestimmte Klasse, abhängig davon evenuell noch zusätzliche Parameter Schau doch mal nach, WAS für eine Exception das ist.

_________________
Na denn, dann. Bis dann, denn.
Jojojoxx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 386



BeitragVerfasst: Mi 19.09.07 09:53 
Hi!
Danke für deine Antwort!

Ich möchte beim IdHTTPServer auf den Fehler, dass der Socket schon benutzt wird, reagieren.
Wie genau gehe ich dann vor?
Danke!
mfg

Jojo
Jojojoxx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 386



BeitragVerfasst: So 23.09.07 19:20 
schieb! :)