I
Itamar Lev
I have a method that executes an sql update and fails.
The description of the failure is:
com.ibm.websphere.ce.cm.DuplicateKeyException: One or more values in
the INSERT statement, UPDATE statement, or foreign key update caused
by a DELETE statement are not valid because the primary key, unique
constraint or unique index identified by "1" constrains table "XXX"
from having duplicate rows for those columns.
I didn't find a way of extracting the type of the exception (if
there's one).
I want to be able to assess the exception and to return a specific
error message with
the specific error explained.
thanks
Itamar
The description of the failure is:
com.ibm.websphere.ce.cm.DuplicateKeyException: One or more values in
the INSERT statement, UPDATE statement, or foreign key update caused
by a DELETE statement are not valid because the primary key, unique
constraint or unique index identified by "1" constrains table "XXX"
from having duplicate rows for those columns.
I didn't find a way of extracting the type of the exception (if
there's one).
I want to be able to assess the exception and to return a specific
error message with
the specific error explained.
thanks
Itamar