Page 1 of 1

Error Handler

Posted: Fri 06 May 2005 06:56
by Starina
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?

Posted: Tue 10 May 2005 10:01
by Alex
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.

ErrorHandler

Posted: Wed 11 May 2005 09:06
by Starina
I cannot use Application.OnError.

Posted: Thu 12 May 2005 08:51
by Alex
You can use standard Try-except solution.