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
public class UnsavedItemException extends InvalidDataException
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:
- Serialized Form
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (to, 11 sep 2008) $
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description UnsavedItemException()
Create 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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnsavedItemException
public UnsavedItemException()
Create a newUnsavedItemException
object.
-
UnsavedItemException
public UnsavedItemException(Throwable cause)
Create a newUnsavedItemException
object.- Parameters:
cause
- Throwable object that caused this exception.
-
UnsavedItemException
public UnsavedItemException(String message)
Create a newUnsavedItemException
object with the specifiedmessage
.- Parameters:
message
- The message to throw with the exception
-
-