public class ObjectNotFoundException extends FinderException
The ObjectNotFoundException exception is thrown by a finder method to indicate that the specified EJB object does not exist.
Only the finder methods that are declared to return a single EJB object use this exception. This exception should not be thrown by finder methods that return a collection of EJB objects (they should return an empty collection instead).
Constructor and Description |
---|
ObjectNotFoundException()
Constructs an ObjectNotFoundException with no detail message.
|
ObjectNotFoundException(String message)
Constructs an ObjectNotFoundException with the specified detail message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ObjectNotFoundException()
public ObjectNotFoundException(String message)
message
- - The detailed message.Copyright © 2019 JBoss by Red Hat. All rights reserved.