public final class EntityNotFoundException extends RuntimeException
Signals that a given entity could not be found.
Constructor and Description |
---|
EntityNotFoundException(Predicate predicate)
Constructs a new exception for a predicate-based lookup.
|
EntityNotFoundException(Predicate predicate,
Throwable cause)
Constructs a new exception for a predicate-based lookup.
|
EntityNotFoundException(Query query)
Constructs a new exception for a predicate-based lookup.
|
EntityNotFoundException(Query query,
Throwable cause)
Constructs a new exception for a predicate-based lookup.
|
EntityNotFoundException(String id)
Constructs a new exception for an ID-based lookup.
|
EntityNotFoundException(String id,
Throwable cause)
Constructs a new exception for an ID-based lookup.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public EntityNotFoundException(String id)
Constructs a new exception for an ID-based lookup.
id
- the requested entity IDpublic EntityNotFoundException(String id, Throwable cause)
Constructs a new exception for an ID-based lookup.
id
- the requested entity IDcause
- the underlying cause, may be nullpublic EntityNotFoundException(Predicate predicate)
Constructs a new exception for a predicate-based lookup.
predicate
- the requested entity predicatepublic EntityNotFoundException(Predicate predicate, Throwable cause)
Constructs a new exception for a predicate-based lookup.
predicate
- the requested entity predicatecause
- the underlying cause, may be nullpublic EntityNotFoundException(Query query)
Constructs a new exception for a predicate-based lookup.
query
- the requested entity queryCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.