public class ObjectRetrievalFailureException extends DataRetrievalFailureException
Constructor and Description |
---|
ObjectRetrievalFailureException(Class persistentClass,
Object identifier)
Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message.
|
ObjectRetrievalFailureException(Class persistentClass,
Object identifier,
String msg,
Throwable cause)
Create a new ObjectRetrievalFailureException for the given object,
with the given explicit message and exception.
|
ObjectRetrievalFailureException(String persistentClassName,
Object identifier)
Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message.
|
ObjectRetrievalFailureException(String persistentClassName,
Object identifier,
String msg,
Throwable cause)
Create a new ObjectRetrievalFailureException for the given object,
with the given explicit message and exception.
|
ObjectRetrievalFailureException(String msg,
Throwable cause)
Create a general ObjectRetrievalFailureException with the given message,
without any information on the affected object.
|
Modifier and Type | Method and Description |
---|---|
Object |
getIdentifier()
Return the identifier of the object that was not found.
|
Class |
getPersistentClass()
Return the persistent class of the object that was not found.
|
String |
getPersistentClassName()
Return the name of the persistent class of the object that was not found.
|
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ObjectRetrievalFailureException(String msg, Throwable cause)
msg
- the detail messagecause
- the source exceptionpublic ObjectRetrievalFailureException(Class persistentClass, Object identifier)
persistentClass
- the persistent classidentifier
- the ID of the object that should have been retrievedpublic ObjectRetrievalFailureException(Class persistentClass, Object identifier, String msg, Throwable cause)
persistentClass
- the persistent classidentifier
- the ID of the object that should have been retrievedmsg
- the detail messagecause
- the source exceptionpublic ObjectRetrievalFailureException(String persistentClassName, Object identifier)
persistentClassName
- the name of the persistent classidentifier
- the ID of the object that should have been retrievedpublic ObjectRetrievalFailureException(String persistentClassName, Object identifier, String msg, Throwable cause)
persistentClassName
- the name of the persistent classidentifier
- the ID of the object that should have been retrievedmsg
- the detail messagecause
- the source exceptionpublic Class getPersistentClass()
public String getPersistentClassName()
public Object getIdentifier()