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:
java.io.Serializable
- Direct Known Subclasses:
CannotCreateReferencedItemException,MissingRequiredAttributeValueException,MissingRequiredMapKeyValueException,UnmodifiableAttributeException
public class AttributePersistenceException extends IntegrationAttributeProcessingException
A base class for all attribute value persistence related exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributePersistenceException(java.lang.String message, TypeAttributeDescriptor descriptor, PersistenceContext context)Instantiates this exceptionAttributePersistenceException(java.lang.String message, TypeAttributeDescriptor descriptor, PersistenceContext context, java.lang.Throwable cause)Instantiates this exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIntegrationKey()Retrieves integration key of the root (original) item associated with the context.PersistenceContextgetPersistenceContext()Provides context associated with the attribute persistence failure.-
Methods inherited from class de.hybris.platform.integrationservices.exception.IntegrationAttributeException
getAttributeDescriptor, getAttributeName, getIntegrationItemCode
-
-
-
-
Constructor Detail
-
AttributePersistenceException
public AttributePersistenceException(java.lang.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(java.lang.String message, TypeAttributeDescriptor descriptor, PersistenceContext context, java.lang.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 Detail
-
getPersistenceContext
public PersistenceContext getPersistenceContext()
Provides context associated with the attribute persistence failure.- Returns:
- a persistence context being processed when the failure occurred.
-
getIntegrationKey
public java.lang.String getIntegrationKey()
Retrieves integration key of the root (original) item associated with the context.- Returns:
- integration key of the payload root item.
-
-