Package net.sf.basedb.core
Class UnsavedItemException
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.UnsavedItemException
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to use an item that has not
been saved to the database in places where this is required. In most
cases this is the result from trying to use an unsaved item in a query.
- Version:
- 2.5
- Author:
- nicklas
- See Also:
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (to, 11 sep 2008) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate a newUnsavedItemException
object.UnsavedItemException
(String message) Create a newUnsavedItemException
object with the specifiedmessage
.UnsavedItemException
(String message, Throwable cause) Create a newUnsavedItemException
object with the specifiedmessage
.UnsavedItemException
(Throwable cause) Create a newUnsavedItemException
object. -
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
-
UnsavedItemException
public UnsavedItemException()Create a newUnsavedItemException
object. -
UnsavedItemException
Create a newUnsavedItemException
object.- Parameters:
cause
- Throwable object that caused this exception.
-
UnsavedItemException
Create a newUnsavedItemException
object with the specifiedmessage
.- Parameters:
message
- The message to throw with the exception
-
UnsavedItemException
Create a newUnsavedItemException
object with the specifiedmessage
.- Parameters:
message
- The message to throw with the exceptioncause
- A throwable exception that caused the exception.
-