2.17.2: 2011-06-17

net.sf.basedb.core
Class ItemInUseException

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.PermissionDeniedException
                      extended by net.sf.basedb.core.ItemInUseException
All Implemented Interfaces:
Serializable

public class ItemInUseException
extends PermissionDeniedException

This exception is thrown when trying delete an item that is used (reference to) by some other item or items.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
ItemInUseException(String what)
          Creates a new ItemInUseException.
ItemInUseException(String what, Throwable cause)
          Creates a new ItemInUseException with a cause.
 
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

ItemInUseException

public ItemInUseException(String what)
Creates a new ItemInUseException. The error message produced will look like: Permission denied. The item User[ID=325] is used by another item.

Parameters:
what - A description of what already exists, for example User[Id=325]

ItemInUseException

public ItemInUseException(String what,
                          Throwable cause)
Creates a new ItemInUseException with a cause. The error message produced will look like: Permission denied. The item User[ID=325] is used by another item.

Parameters:
what - A description of what already exists, for example User[Id=325]
cause - The cause of the error
Since:
2.4

2.17.2: 2011-06-17