PersistenceException.getNestedThrowable() will return you the underlying
exceptions.
Recurse through them till you hit the original SQLException.


-- 
View this message in context: 
http://www.nabble.com/How-to-know-the-error-code-from-org.apache.openjpa.persistence.PersistenceException-tp14809198p14809208.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to