public class ItemInUseException extends PermissionDeniedException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
ItemInUseException(String what)
Creates a new
ItemInUseException . |
ItemInUseException(String what,
Throwable cause)
Creates a new
ItemInUseException with a cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
public ItemInUseException(String what)
ItemInUseException
. The error
message produced will look like:
Permission denied. The item User[ID=325] is used by another item.
what
- A description of what already exists, for
example User[Id=325]public ItemInUseException(String what, Throwable cause)
ItemInUseException
with a cause. The error
message produced will look like:
Permission denied. The item User[ID=325] is used by another item.
what
- A description of what already exists, for
example User[Id=325]cause
- The cause of the error