i trying call saveorupdate() in hibernate save data. since columns have unique index, throws constraintviolationexception when through via eclipse debugger.
since root cause different different exception while inserting data table.
wanted know, how can loop / traverse through getcause() check root cause of exception , message.
update:
kind response, thing want output in below image:

need access detailmessage field.
(i sorry if not make question more clear.)
thanks.
the apache exceptionutils provide following method:
throwable getrootcause(throwable throwable) as as
string getrootcausemessage(throwable th)
Comments
Post a Comment