 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martin Stephenson Guest
|
Posted: Sun Apr 11, 2004 9:44 pm Post subject: Exceptions raised in OnBeforeUpdate lost |
|
|
I have written my own Provider.OnBeforeUpdate event to generate SQL. If I
get an exception raised when generating the SQL (I was getting cannot
convert Null to AsString or something similar) then the event was failing,
no further records were being processed by the event but the exception was
being lost. I have solved the error by using VarIsNull but why is the
exception not being passed up ?
Martin
|
|
| Back to top |
|
 |
David M Guest
|
Posted: Tue Apr 13, 2004 7:28 pm Post subject: Re: Exceptions raised in OnBeforeUpdate lost |
|
|
On Sun, 11 Apr 2004 22:44:00 +0100, "Martin Stephenson"
<w_orbit (AT) hotmail (DOT) com> wrote:
| Quote: | I have written my own Provider.OnBeforeUpdate event to generate SQL.
|
There is no OnBeforeUpdate event handler. Which event handler have
you hooked ?
BeforeUpdateRecord,
or
OnUpdateData ?
David M
|
|
| Back to top |
|
 |
Martin Stephenson Guest
|
Posted: Thu Apr 15, 2004 6:53 pm Post subject: Re: Exceptions raised in OnBeforeUpdate lost |
|
|
Oops. sorry, event is BeforeUpdateRecord
Thats what comes of writing the post from home without having the code in
front of me !
Thanks
Martin
"David M" <borlandnewsWITHNO (AT) SPAMmoorhouse (DOT) net.nz> wrote
| Quote: | On Sun, 11 Apr 2004 22:44:00 +0100, "Martin Stephenson"
[email]w_orbit (AT) hotmail (DOT) com[/email]> wrote:
I have written my own Provider.OnBeforeUpdate event to generate SQL.
There is no OnBeforeUpdate event handler. Which event handler have
you hooked ?
BeforeUpdateRecord,
or
OnUpdateData ?
David M
|
|
|
| Back to top |
|
 |
Dave Rowntree Guest
|
Posted: Fri Apr 16, 2004 8:47 am Post subject: Re: Exceptions raised in OnBeforeUpdate lost |
|
|
"Martin Stephenson" <w_orbit (AT) hotmail (DOT) com> wrote:
| Quote: | Oops. sorry, event is BeforeUpdateRecord
|
CDS.ApplyUpdates does not re-raise exceptions raised at the DSP. They
are surfaced as update errors in the CDS.OnReconcileError event. Look
in help for CDS.OnReconcileError event. It includes an example of how
you can use the supplied HandleReconcileError dialog.
--
Dave Rowntree
|
|
| Back to top |
|
 |
Fabio Dell'Aria Guest
|
Posted: Thu May 06, 2004 8:47 am Post subject: Re: Exceptions raised in OnBeforeUpdate lost |
|
|
Dave Rowntree <daver (AT) spam_off (DOT) brookswood.co.uk> wrote
| Quote: | "Martin Stephenson" <w_orbit (AT) hotmail (DOT) com> wrote:
Oops. sorry, event is BeforeUpdateRecord
CDS.ApplyUpdates does not re-raise exceptions raised at the DSP. They
are surfaced as update errors in the CDS.OnReconcileError event. Look
in help for CDS.OnReconcileError event. It includes an example of how
you can use the supplied HandleReconcileError dialog.
|
You can try EurekaLog ([url]www.eurekalog.com)[/url].
EurekaLog is an add-in tool that gives to your application (GUI,
Console, Web, etc.) the ability to catch every exception (even those
raised by memory leaks) and every infinite-loops/deadlock bugs,
generating a detailed log of call stack (with unit, class, method and
line #), showing and sending it back to you via email.
--
Best regards...
Fabio Dell'Aria.
|
|
| 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
|
|