Class AttributePersistenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.integrationservices.exception.IntegrationAttributeException
de.hybris.platform.integrationservices.exception.IntegrationAttributeProcessingException
de.hybris.platform.inboundservices.persistence.populator.AttributePersistenceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CannotCreateReferencedItemException,MissingRequiredAttributeValueException,MissingRequiredMapKeyValueException,UnmodifiableAttributeException
A base class for all attribute value persistence related exceptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttributePersistenceException(String message, TypeAttributeDescriptor descriptor, PersistenceContext context) Instantiates this exceptionAttributePersistenceException(String message, TypeAttributeDescriptor descriptor, PersistenceContext context, Throwable cause) Instantiates this exception -
Method Summary
Modifier and TypeMethodDescriptionRetrieves integration key of the root (original) item associated with the context.Provides context associated with the attribute persistence failure.Methods inherited from class de.hybris.platform.integrationservices.exception.IntegrationAttributeException
getAttributeDescriptor, getAttributeName, getIntegrationItemCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AttributePersistenceException
public AttributePersistenceException(String message, TypeAttributeDescriptor descriptor, PersistenceContext context) Instantiates this exception- Parameters:
message- a message for the new exception instance.descriptor- descriptor of the attribute, whose value could not be persisted.context- context of the item being persisted.
-
AttributePersistenceException
public AttributePersistenceException(String message, TypeAttributeDescriptor descriptor, PersistenceContext context, Throwable cause) Instantiates this exception- Parameters:
message- a message for the new exception instance.descriptor- descriptor of the attribute, whose value could not be persisted.context- context of the item being persisted.cause- a failure converted into this exception.
-
-
Method Details
-
getPersistenceContext
Provides context associated with the attribute persistence failure.- Returns:
- a persistence context being processed when the failure occurred.
-
getIntegrationKey
Retrieves integration key of the root (original) item associated with the context.- Returns:
- integration key of the payload root item.
-