 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Peck777 Guest
|
Posted: Mon Jul 10, 2006 3:40 pm Post subject: Wanna Catch exceptions ? |
|
|
Hi Folks !!
I have a new question : Can I intercept IW exceptions ?
because i made some tests with TADOQuery with violation key, and IW raised
the right exception. But the TApplicationEvents don't intercept it in the
UserSession unit neither the ServerController.
So, is there an IW event that handles those exceptions ???
Peck777 |
|
| Back to top |
|
 |
Joel Guest
|
Posted: Mon Jul 10, 2006 5:29 pm Post subject: Re: Wanna Catch exceptions ? |
|
|
You will have to reraise the exception.
In your except clause just call "raise" again.
"Peck777" <peck777 (AT) zebulon (DOT) com> wrote in message
news:44b22eaf$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi Folks !!
I have a new question : Can I intercept IW exceptions ?
because i made some tests with TADOQuery with violation key, and IW raised
the right exception. But the TApplicationEvents don't intercept it in the
UserSession unit neither the ServerController.
So, is there an IW event that handles those exceptions ???
Peck777
|
|
|
| Back to top |
|
 |
Peck777 Guest
|
Posted: Tue Jul 11, 2006 4:30 pm Post subject: Re: Wanna Catch exceptions ? |
|
|
Thanks, but I don't wanna raise exception but "catch" exceptions raised by
IW standalone server.
Any way, I found the OnException event in ServerController class.
Bye.
"Joel" <nowhere (AT) nowhere (DOT) com> a écrit dans le message de news:
44b24815 (AT) newsgroups (DOT) borland.com...
| Quote: | You will have to reraise the exception.
In your except clause just call "raise" again.
"Peck777" <peck777 (AT) zebulon (DOT) com> wrote in message
news:44b22eaf$1 (AT) newsgroups (DOT) borland.com...
Hi Folks !!
I have a new question : Can I intercept IW exceptions ?
because i made some tests with TADOQuery with violation key, and IW
raised the right exception. But the TApplicationEvents don't intercept it
in the UserSession unit neither the ServerController.
So, is there an IW event that handles those exceptions ???
Peck777
|
|
|
| Back to top |
|
 |
Joel Guest
|
Posted: Wed Jul 12, 2006 1:12 am Post subject: Re: Wanna Catch exceptions ? |
|
|
I use eurekalog for catching exceptions
"Peck777" <peck777 (AT) zebulon (DOT) com> wrote in message
news:44b38bbd (AT) newsgroups (DOT) borland.com...
| Quote: | Thanks, but I don't wanna raise exception but "catch" exceptions raised by
IW standalone server.
Any way, I found the OnException event in ServerController class.
Bye.
"Joel" <nowhere (AT) nowhere (DOT) com> a écrit dans le message de news:
44b24815 (AT) newsgroups (DOT) borland.com...
You will have to reraise the exception.
In your except clause just call "raise" again.
"Peck777" <peck777 (AT) zebulon (DOT) com> wrote in message
news:44b22eaf$1 (AT) newsgroups (DOT) borland.com...
Hi Folks !!
I have a new question : Can I intercept IW exceptions ?
because i made some tests with TADOQuery with violation key, and IW
raised the right exception. But the TApplicationEvents don't intercept
it in the UserSession unit neither the ServerController.
So, is there an IW event that handles those exceptions ???
Peck777
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|