Interface PCIRequestErrorHandler
- All Known Implementing Classes:
PCIRequestErrorHandlerImpl
public interface PCIRequestErrorHandler
Exception Handler for PCI.
-
Method Summary
Modifier and TypeMethodDescriptionprocessCreateAnalyticsDocumentHttpError(com.hybris.charon.exp.HttpException ex, AnalyticsDocument analyticsDocumentInput) Handles any Sever-Side HTTP-Exception when creating an anlytics document.processCreateAnalyticsDocumentRuntimeException(RuntimeException ex, AnalyticsDocument analyticsDocumentInput) Processes runtime exceptions like timeout or non-existing server.
-
Method Details
-
processCreateAnalyticsDocumentHttpError
AnalyticsDocument processCreateAnalyticsDocumentHttpError(com.hybris.charon.exp.HttpException ex, AnalyticsDocument analyticsDocumentInput) Handles any Sever-Side HTTP-Exception when creating an anlytics document.- Parameters:
ex- HttpExceptionanalyticsDocumentInput-- Returns:
- analytics document
-
processCreateAnalyticsDocumentRuntimeException
AnalyticsDocument processCreateAnalyticsDocumentRuntimeException(RuntimeException ex, AnalyticsDocument analyticsDocumentInput) Processes runtime exceptions like timeout or non-existing server. Default behavior: Timeout exceptions are handled gracefully (just logged) while other runtime exceptions are re-thrown.- Parameters:
ex- Runtime exception that wraps the actual causeanalyticsDocumentInput-- Returns:
- analytics
-