public class ObjectRetrievalFailureException extends DataRetrievalFailureException
| Constructor and Description | 
|---|
| ObjectRetrievalFailureException(java.lang.Class<?> persistentClass,
                               java.lang.Object identifier)Create a new ObjectRetrievalFailureException for the given object,
 with the default "not found" message. | 
| ObjectRetrievalFailureException(java.lang.Class<?> persistentClass,
                               java.lang.Object identifier,
                               java.lang.String msg,
                               java.lang.Throwable cause)Create a new ObjectRetrievalFailureException for the given object,
 with the given explicit message and exception. | 
| ObjectRetrievalFailureException(java.lang.String persistentClassName,
                               java.lang.Object identifier)Create a new ObjectRetrievalFailureException for the given object,
 with the default "not found" message. | 
| ObjectRetrievalFailureException(java.lang.String persistentClassName,
                               java.lang.Object identifier,
                               java.lang.String msg,
                               java.lang.Throwable cause)Create a new ObjectRetrievalFailureException for the given object,
 with the given explicit message and exception. | 
| ObjectRetrievalFailureException(java.lang.String msg,
                               java.lang.Throwable cause)Create a general ObjectRetrievalFailureException with the given message,
 without any information on the affected object. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | getIdentifier()Return the identifier of the object that was not found. | 
| java.lang.Class<?> | getPersistentClass()Return the persistent class of the object that was not found. | 
| java.lang.String | getPersistentClassName()Return the name of the persistent class of the object that was not found. | 
contains, getMessage, getMostSpecificCause, getRootCausepublic ObjectRetrievalFailureException(java.lang.String msg,
                                       java.lang.Throwable cause)
msg - the detail messagecause - the source exceptionpublic ObjectRetrievalFailureException(java.lang.Class<?> persistentClass,
                                       java.lang.Object identifier)
persistentClass - the persistent classidentifier - the ID of the object that should have been retrievedpublic ObjectRetrievalFailureException(java.lang.Class<?> persistentClass,
                                       java.lang.Object identifier,
                                       java.lang.String msg,
                                       @Nullable
                                       java.lang.Throwable cause)
persistentClass - the persistent classidentifier - the ID of the object that should have been retrievedmsg - the detail messagecause - the source exceptionpublic ObjectRetrievalFailureException(java.lang.String persistentClassName,
                                       java.lang.Object identifier)
persistentClassName - the name of the persistent classidentifier - the ID of the object that should have been retrievedpublic ObjectRetrievalFailureException(java.lang.String persistentClassName,
                                       java.lang.Object identifier,
                                       java.lang.String msg,
                                       @Nullable
                                       java.lang.Throwable cause)
persistentClassName - the name of the persistent classidentifier - the ID of the object that should have been retrievedmsg - the detail messagecause - the source exception@Nullable public java.lang.Class<?> getPersistentClass()
@Nullable public java.lang.String getPersistentClassName()
@Nullable public java.lang.Object getIdentifier()