Class AttributePersistenceException

All Implemented Interfaces:
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:
  • 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

      public PersistenceContext getPersistenceContext()
      Provides context associated with the attribute persistence failure.
      Returns:
      a persistence context being processed when the failure occurred.
    • getIntegrationKey

      public String getIntegrationKey()
      Retrieves integration key of the root (original) item associated with the context.
      Returns:
      integration key of the payload root item.