How to get exact error message from print stacktrace?
Hi,
While throwing Unique Contraint Exception, getMessage() throws entire statck trace like "insert into <table name> values(<column names>) schemaname.constraintname constarint violation exception
I need to get schemaname.constraintname constarint violation exception alone.
How to extract the message?