In the EDR specification, look at the Javadoc decls in the EntityManager interface and Query interface. There's a lot of information on what exceptions *should* be thrown. This doesn't guarantee that JBoss EJB3 has implemented the behavior yet! If you find that we don't throw correct exceptions, then please log a bug on jira.jboss.com. For instenace, Preview 4 does not handle finds correctly and throws a specific Hibernate exception rather than an EJB3 one.
Thanks for your input though, I will put in a Jira task to make sure how we document on how to use AOP to hook in your own exception handling.
yes, the first exception I tried was, when entity not found, from a find and seeing some hibernate exceptions flying around, I started worying and "loosing the checker-feeling". I see its corrected in preview5, which is scheduled soon, so I think I`ll wait for that.