Package net.sf.basedb.core
Class ItemNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.basedb.core.BaseException
net.sf.basedb.core.InvalidDataException
net.sf.basedb.core.ItemNotFoundException
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to load an item from
the database that does not exist.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemNotFoundException
(String what) Creates a newItemNotFoundException
.ItemNotFoundException
(String what, Throwable cause) Creates a newItemNotFoundException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ItemNotFoundException
Creates a newItemNotFoundException
. The error message produced will look like:Item not found: User[ID=1]
- Parameters:
what
- A description of what was not found, for example: User[ID=1]
-
ItemNotFoundException
Creates a newItemNotFoundException
. The error message produced will look like:Item not found: User[ID=1]
- Parameters:
what
- A description of what was not found, for example: User[ID=1]cause
- The cause of the exception- Since:
- 3.0
-