Error Handler

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Starina
Posts: 16
Joined: Tue 14 Dec 2004 15:17

Error Handler

Post by Starina » Fri 06 May 2005 06:56

Hi.

How can I catch an Oracle error (like TOraErrorHandler component) not using the TOraSession.OnError event?
How do the TOraErrorHandler determine a constraint name given in a Oracle error message?

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Tue 10 May 2005 10:01

You can use Application.OnError event handler and catch any types of error you need. To determine constraint name TOraErrorHandler uses SQL query to Oracle.

Starina
Posts: 16
Joined: Tue 14 Dec 2004 15:17

ErrorHandler

Post by Starina » Wed 11 May 2005 09:06

I cannot use Application.OnError.

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Thu 12 May 2005 08:51

You can use standard Try-except solution.

Post Reply