public class ItemNotFoundException extends InvalidDataException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
ItemNotFoundException(java.lang.String what)
Creates a new
ItemNotFoundException . |
ItemNotFoundException(java.lang.String what,
java.lang.Throwable cause)
Creates a new
ItemNotFoundException . |
private static final long serialVersionUID
public ItemNotFoundException(java.lang.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(java.lang.String what, java.lang.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