 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Matias Guest
|
Posted: Wed Sep 03, 2003 11:21 am Post subject: Delphi, PostgresQL and Exceptions |
|
|
Hi, does anyone know howto handle "notice"s raised by postgresql??
because I can't get it to work with a normal try/except/on e:exception
block,
example:
try
(Datasource1.DataSet as TCLientDataset).ApplyUpdates(0);
except
on e:exception do
MessageDlg('No se pudieron aplicar todos los cambios' , mtWarning, end;
when I run this from delhi ide, i can see the exception error in the
debugger but it skips the except block because this is not a really
exception, just a "notice" of postgres... no message can be seen if the
app is run outside the ide.
any workaround??
Thanks a lot!!
|
|
| Back to top |
|
 |
Matias Guest
|
Posted: Wed Sep 03, 2003 11:53 am Post subject: Re: Delphi, PostgresQL and Exceptions |
|
|
Matias wrote:
| Quote: | Hi, does anyone know howto handle "notice"s raised by postgresql??
because I can't get it to work with a normal try/except/on e:exception
block,
example:
try
(Datasource1.DataSet as TCLientDataset).ApplyUpdates(0);
except
on e:exception do
MessageDlg('No se pudieron aplicar todos los cambios' , mtWarning, end;
when I run this from delhi ide, i can see the exception error in the
debugger but it skips the except block because this is not a really
exception, just a "notice" of postgres... no message can be seen if the
app is run outside the ide.
any workaround??
Thanks a lot!!
I forgot to say: |
I want to pass the postgresql notice message to the final user...
thanks!
|
|
| Back to top |
|
 |
Fabio Dell'Aria Guest
|
Posted: Wed Sep 17, 2003 1:46 pm Post subject: Re: Delphi, PostgresQL and Exceptions |
|
|
Matias <matiass (AT) interlap (DOT) com.ar> wrote
| Quote: | Hi, does anyone know howto handle "notice"s raised by postgresql??
because I can't get it to work with a normal try/except/on e:exception
block,
example:
try
(Datasource1.DataSet as TCLientDataset).ApplyUpdates(0);
except
on e:exception do
MessageDlg('No se pudieron aplicar todos los cambios' , mtWarning, end;
when I run this from delhi ide, i can see the exception error in the
debugger but it skips the except block because this is not a really
exception, just a "notice" of postgres... no message can be seen if the
app is run outside the ide.
any workaround??
Thanks a lot!!
|
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
|
|