| org.springframework.dao.DataRetrievalFailureException org.springframework.orm.ObjectRetrievalFailureException
All known Subclasses: org.springframework.orm.jdo.JdoObjectRetrievalFailureException, org.springframework.orm.jpa.JpaObjectRetrievalFailureException, org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException,
ObjectRetrievalFailureException | public class ObjectRetrievalFailureException extends DataRetrievalFailureException (Code) | | Exception thrown if a mapped object could not be retrieved via its identifier.
Provides information about the persistent class and the identifier.
author: Juergen Hoeller since: 13.10.2003 |
Constructor Summary | |
public | ObjectRetrievalFailureException(String msg, Throwable cause) Create a general ObjectRetrievalFailureException with the given message,
without any information on the affected object. | public | ObjectRetrievalFailureException(Class persistentClass, Object identifier) Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message. | public | ObjectRetrievalFailureException(Class persistentClass, Object identifier, String msg, Throwable cause) Create a new ObjectRetrievalFailureException for the given object,
with the given explicit message and exception. | public | ObjectRetrievalFailureException(String persistentClassName, Object identifier) Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message. | public | 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 | public ObjectRetrievalFailureException(String msg, Throwable cause)(Code) | | Create a general ObjectRetrievalFailureException with the given message,
without any information on the affected object.
Parameters: msg - the detail message Parameters: cause - the source exception |
ObjectRetrievalFailureException | public ObjectRetrievalFailureException(Class persistentClass, Object identifier)(Code) | | Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message.
Parameters: persistentClass - the persistent class Parameters: identifier - the ID of the object that should have been retrieved |
ObjectRetrievalFailureException | public ObjectRetrievalFailureException(Class persistentClass, Object identifier, String msg, Throwable cause)(Code) | | Create a new ObjectRetrievalFailureException for the given object,
with the given explicit message and exception.
Parameters: persistentClass - the persistent class Parameters: identifier - the ID of the object that should have been retrieved Parameters: msg - the detail message Parameters: cause - the source exception |
ObjectRetrievalFailureException | public ObjectRetrievalFailureException(String persistentClassName, Object identifier)(Code) | | Create a new ObjectRetrievalFailureException for the given object,
with the default "not found" message.
Parameters: persistentClassName - the name of the persistent class Parameters: identifier - the ID of the object that should have been retrieved |
ObjectRetrievalFailureException | public ObjectRetrievalFailureException(String persistentClassName, Object identifier, String msg, Throwable cause)(Code) | | Create a new ObjectRetrievalFailureException for the given object,
with the given explicit message and exception.
Parameters: persistentClassName - the name of the persistent class Parameters: identifier - the ID of the object that should have been retrieved Parameters: msg - the detail message Parameters: cause - the source exception |
getIdentifier | public Object getIdentifier()(Code) | | Return the identifier of the object that was not found.
|
getPersistentClass | public Class getPersistentClass()(Code) | | Return the persistent class of the object that was not found.
If no Class was specified, this method returns null.
|
getPersistentClassName | public String getPersistentClassName()(Code) | | Return the name of the persistent class of the object that was not found.
Will work for both Class objects and String names.
|
|
|