Class WebhookExceptionTranslationHandler
- java.lang.Object
-
- de.hybris.platform.integrationbackoffice.exceptionhandlers.IntegrationApiExceptionTranslationHandler
-
- de.hybris.platform.webhookbackoffice.handlers.WebhookExceptionTranslationHandler
-
- All Implemented Interfaces:
com.hybris.cockpitng.service.ExceptionTranslationHandler,org.springframework.core.Ordered
public class WebhookExceptionTranslationHandler extends IntegrationApiExceptionTranslationHandler
Handler that translates exceptions so they appear in the Backoffice
-
-
Constructor Summary
Constructors Constructor Description WebhookExceptionTranslationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringconvertExceptionToResourceMsg(java.lang.Throwable exception)Try to get bundle resource with the className of the exception that is being handled.protected java.util.List<java.lang.String>getTargetedException()The exceptions that this handler is able to handle.-
Methods inherited from class de.hybris.platform.integrationbackoffice.exceptionhandlers.IntegrationApiExceptionTranslationHandler
canHandle, getOrder, toString
-
-
-
-
Method Detail
-
getTargetedException
protected final java.util.List<java.lang.String> getTargetedException()
The exceptions that this handler is able to handle.- Specified by:
getTargetedExceptionin classIntegrationApiExceptionTranslationHandler- Returns:
- The list of exceptions that this handler is able to handle.
-
convertExceptionToResourceMsg
protected java.lang.String convertExceptionToResourceMsg(java.lang.Throwable exception)
Try to get bundle resource with the className of the exception that is being handled.- Specified by:
convertExceptionToResourceMsgin classIntegrationApiExceptionTranslationHandler- Parameters:
exception- The exception that is being translated. Use its class name as key to get bundle resource
-
-