Skip to content

Exceptions easily provoked

Exception How to provoke Comment
[NonUniqueResultException http://docs.jboss.org/hibernate/core/3.5/api/org/hibernate/NonUniqueResultException.html] find the uniqueResult method and ensure the database contains two rows which satisfies the given where clause
NullPointerException make sure some object is null