public class ItemNotFoundException extends InvalidDataException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
ItemNotFoundException(String what)
Creates a new
ItemNotFoundException . |
ItemNotFoundException(String what,
Throwable cause)
Creates a new
ItemNotFoundException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
public ItemNotFoundException(String what)
ItemNotFoundException
. The error
message produced will look like:
Item not found: User[ID=1]
what
- A description of what was not found, for
example: User[ID=1]public ItemNotFoundException(String what, Throwable cause)
ItemNotFoundException
. The error
message produced will look like:
Item not found: User[ID=1]
what
- A description of what was not found, for
example: User[ID=1]cause
- The cause of the exception