[hibernate-dev] be gone NPE in HqlSqlWalker.createFromJoinElement and AS7-5555

Scott Marlow smarlow at redhat.com
Thu Sep 13 21:39:12 EDT 2012


Hi,

In AS7-5555, Ondřej is looking to let the person writing the application 
know what is wrong in a different way than throwing an NPE.

Throwing a new HibernateException("you did it wrong") might be more 
informative.

Any arguments against doing that?

Also, any suggestions for what the exception message should be?

Scott


More information about the hibernate-dev mailing list