2.17.2: 2011-06-17

net.sf.basedb.core
Class UnsavedItemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.basedb.core.BaseException
                  extended by net.sf.basedb.core.InvalidDataException
                      extended by 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 (Thu, 11 Sep 2008) $

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
UnsavedItemException()
          Create a new UnsavedItemException object.
UnsavedItemException(String message)
          Create a new UnsavedItemException object with the specified message.
UnsavedItemException(String message, Throwable cause)
          Create a new UnsavedItemException object with the specified message.
UnsavedItemException(Throwable cause)
          Create a new UnsavedItemException object.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

UnsavedItemException

public UnsavedItemException()
Create a new UnsavedItemException object.


UnsavedItemException

public UnsavedItemException(Throwable cause)
Create a new UnsavedItemException object.

Parameters:
cause - Throwable object that caused this exception.

UnsavedItemException

public UnsavedItemException(String message)
Create a new UnsavedItemException object with the specified message.

Parameters:
message - The message to throw with the exception

UnsavedItemException

public UnsavedItemException(String message,
                            Throwable cause)
Create a new UnsavedItemException object with the specified message.

Parameters:
message - The message to throw with the exception
cause - A throwable exception that caused the exception.

2.17.2: 2011-06-17