Class PersistenceHookException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.inboundservices.persistence.hook.impl.PersistenceHookException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PersistenceHookExecutionException, PersistenceHookNotFoundException

public class PersistenceHookException extends RuntimeException
Common exception for persistence hook problems.
See Also:
  • Constructor Details

    • PersistenceHookException

      public PersistenceHookException(String message, @NotNull @NotNull PersistenceContext context, String name)
      Instantiates this exception.
      Parameters:
      message - a message explaining the problem
      context - context for the request being processed when this exception was thrown
      name - name of the hook that failed processing.
    • PersistenceHookException

      public PersistenceHookException(String message, @NotNull @NotNull PersistenceContext context, String name, RuntimeException e)
      Instantiates this exception.
      Parameters:
      message - a message explaining the problem
      context - context for the request being processed when this exception was thrown
      name - name of the hook that failed processing.
      e - exception that caused this exception to be thrown.
  • Method Details

    • getPersistenceContext

      public PersistenceContext getPersistenceContext()
      Retrieves context for the request that failed processing by the persistence hook.
      Returns:
      request context that was processed when this exception was thrown.
    • getPersistenceHookType

      public PersistenceHookType getPersistenceHookType()
      Informs about what persistence hook failed processing.
      Returns:
      type of the hook that failed processing
    • getHookName

      public String getHookName()
      Retrieves name of the hook that caused this exception.
      Returns:
      name of the hook that failed processing.