Package net.sf.basedb.core
Class ItemInUseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.basedb.core.BaseException
net.sf.basedb.core.PermissionDeniedException
net.sf.basedb.core.ItemInUseException
- All Implemented Interfaces:
Serializable
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:
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemInUseException
(String what) Creates a newItemInUseException
.ItemInUseException
(String what, Throwable cause) Creates a newItemInUseException
with a cause. -
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
-
ItemInUseException
Creates a newItemInUseException
. 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
Creates a newItemInUseException
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
-