com.centrasite.jaxr.exceptions
Class CannotReplaceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.registry.JAXRException
com.centrasite.jaxr.exceptions.ImportValidationException
com.centrasite.jaxr.exceptions.CannotReplaceException
- All Implemented Interfaces:
- java.io.Serializable, javax.xml.registry.JAXRResponse
public class CannotReplaceException
- extends ImportValidationException
Exception used for reporting failure to replace an existing registry object,
because its database representation embeds another object that is referenced,
but not defined by the replacing object.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
rcs_id
|
Fields inherited from class javax.xml.registry.JAXRException |
cause |
Fields inherited from interface javax.xml.registry.JAXRResponse |
STATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING |
Constructor Summary |
CannotReplaceException(javax.xml.registry.infomodel.RegistryObject ro,
javax.xml.registry.infomodel.RegistryObject conflictingObject,
javax.xml.registry.infomodel.RegistryObject referencingObject)
Construct a new CannotReplaceException |
Method Summary |
javax.xml.registry.infomodel.RegistryObject |
getConflictingObject()
Return the object that caused this conflict, which is the persistent
subobject referenced, but not defined by the replacement main object. |
javax.xml.registry.infomodel.RegistryObject |
getReferencingObject()
Return the object that references the conflicting object. |
Methods inherited from class javax.xml.registry.JAXRException |
getCause, getMessage, getRequestId, getStatus, initCause, isAvailable |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rcs_id
public static final java.lang.String rcs_id
- See Also:
- Constant Field Values
CannotReplaceException
public CannotReplaceException(javax.xml.registry.infomodel.RegistryObject ro,
javax.xml.registry.infomodel.RegistryObject conflictingObject,
javax.xml.registry.infomodel.RegistryObject referencingObject)
- Construct a new CannotReplaceException
- Parameters:
ro
- the object that cannot be importedconflictingObject
- the object that is embedded in the persistent counterpart of
ro, not defined by ro, but referenced by other parts of the
registryreferencingObject
- the object that references conflictingObject, either directly
or indirectly through one of its embedded objects
getConflictingObject
public javax.xml.registry.infomodel.RegistryObject getConflictingObject()
- Return the object that caused this conflict, which is the persistent
subobject referenced, but not defined by the replacement main object.
- Returns:
- the object that caused this conflict
getReferencingObject
public javax.xml.registry.infomodel.RegistryObject getReferencingObject()
- Return the object that references the conflicting object.
- Returns:
- the object that references the conflicting object