java.lang.Object | ||||||||
↳ | java.lang.Throwable | |||||||
↳ | java.lang.Exception | |||||||
↳ | java.lang.RuntimeException | |||||||
↳ | org.springframework.core.NestedRuntimeException | |||||||
↳ | org.springframework.dao.DataAccessException | |||||||
↳ | org.springframework.dao.NonTransientDataAccessException | |||||||
↳ | org.springframework.dao.DataRetrievalFailureException | |||||||
↳ | org.springframework.orm.ObjectRetrievalFailureException |
Known Direct Subclasses |
Exception thrown if a mapped object could not be retrieved via its identifier. Provides information about the persistent class and the identifier.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a general ObjectRetrievalFailureException with the given message,
without any information on the affected object.
| |||||||||||
Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message.
| |||||||||||
Create a new ObjectRetrievalFailureException for the given object,
with the given explicit message and exception.
| |||||||||||
Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message.
| |||||||||||
Create a new ObjectRetrievalFailureException for the given object,
with the given explicit message and exception.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the identifier of the object that was not found.
| |||||||||||
Return the persistent class of the object that was not found.
| |||||||||||
Return the name of the persistent class of the object that was not found.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.NestedRuntimeException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Create a general ObjectRetrievalFailureException with the given message, without any information on the affected object.
msg | the detail message |
---|---|
cause | the source exception |
Create a new ObjectRetrievalFailureException for the given object, with the default "not found" message.
persistentClass | the persistent class |
---|---|
identifier | the ID of the object that should have been retrieved |
Create a new ObjectRetrievalFailureException for the given object, with the given explicit message and exception.
persistentClass | the persistent class |
---|---|
identifier | the ID of the object that should have been retrieved |
msg | the detail message |
cause | the source exception |
Create a new ObjectRetrievalFailureException for the given object, with the default "not found" message.
persistentClassName | the name of the persistent class |
---|---|
identifier | the ID of the object that should have been retrieved |
Create a new ObjectRetrievalFailureException for the given object, with the given explicit message and exception.
persistentClassName | the name of the persistent class |
---|---|
identifier | the ID of the object that should have been retrieved |
msg | the detail message |
cause | the source exception |
Return the persistent class of the object that was not found. If no Class was specified, this method returns null.
Return the name of the persistent class of the object that was not found. Will work for both Class objects and String names.