BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi, PostgresQL and Exceptions

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Matias
Guest





PostPosted: Wed Sep 03, 2003 11:21 am    Post subject: Delphi, PostgresQL and Exceptions Reply with 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!!

Back to top
Matias
Guest





PostPosted: Wed Sep 03, 2003 11:53 am    Post subject: Re: Delphi, PostgresQL and Exceptions Reply with quote



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





PostPosted: Wed Sep 17, 2003 1:46 pm    Post subject: Re: Delphi, PostgresQL and Exceptions Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.