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
Common exception for persistence hook problems.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceHookException(String message, @NotNull PersistenceContext context, String name) Instantiates this exception.PersistenceHookException(String message, @NotNull PersistenceContext context, String name, RuntimeException e) Instantiates this exception. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves name of the hook that caused this exception.Retrieves context for the request that failed processing by the persistence hook.Informs about what persistence hook failed processing.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PersistenceHookException
public PersistenceHookException(String message, @NotNull @NotNull PersistenceContext context, String name) Instantiates this exception.- Parameters:
message- a message explaining the problemcontext- context for the request being processed when this exception was thrownname- 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 problemcontext- context for the request being processed when this exception was thrownname- name of the hook that failed processing.e- exception that caused this exception to be thrown.
-
-
Method Details
-
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
Informs about what persistence hook failed processing.- Returns:
- type of the hook that failed processing
-
getHookName
Retrieves name of the hook that caused this exception.- Returns:
- name of the hook that failed processing.
-