Class ObjectNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.randomnoun.common.exception.ObjectNotFoundException
All Implemented Interfaces:
Serializable

An exception which is thrown by DAOs when an objectId is supplied that doesn't have a record in the database.

Would typically be caused by a user deleting an object, then hitting the back button on their browser to an object editor page showing that object, and then hitting reload.

I used to use IllegalArgumentExceptions for this, but now these are being caught and acted upon in the Action classes, I thought it better to use a new exception type.

Author:
knoxg
See Also: