openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Exception translation by EntityManager facade
Date Wed, 28 May 2008 20:57:58 GMT

  Currently, EntityManager facade translates exceptions raised by kernel
using a RuntimeExceptionTranslator that passes through any exception whose
class name starts with "org.apache.openjpa.persistence."

  This policy, thereby, produces user-visible exceptions that are not
*strictly* what JPA spec says (though loosely they are, because many of
these pass-through OpenJPA-specific exceptions inherit from their
JPA-defined counterparts). Does spec say something about the exact runtime
type of raised exception by EntityManager methods, for example, will a
subclass be spec-compliant? 
  I don't seem to locate any statements w.r.t. above question.

  Regards --

View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message