how to handle error in odac

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
prakashKB
Posts: 3
Joined: Wed 30 Jun 2010 13:13
Location: India
Contact:

how to handle error in odac

Post by prakashKB » Wed 30 Jun 2010 13:28

Dear friends,

i know there is component for error handling but it requires error message table and programmer have insert all error code as well as user define messages but it is very big task for programmer .

because in our application keys are changes frequently so it is not possible to update each constrains or error code..

is there any easy method or any alternative for this solution.

Thanks in advance.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 01 Jul 2010 10:06

Hello

Method that you described is the most popular and a lot of products use it. There is no universal solution. An alternative method is to parse your constraints to text message:

Constraint "Value >= 0" can be parsed and the message "The Value field cannot be less then 0" generated

But this way is too difficult to implement and it cannot generate 100% messages. For complex constraints you will have to write messages manually.

Post Reply