Page 1 of 1

how to handle error in odac

Posted: Wed 30 Jun 2010 13:28
by prakashKB
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.

Posted: Thu 01 Jul 2010 10:06
by bork
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.