Class 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 Detail

      • WebhookExceptionTranslationHandler

        public WebhookExceptionTranslationHandler()
    • Method Detail

      • getTargetedException

        protected final java.util.List<java.lang.String> getTargetedException()
        The exceptions that this handler is able to handle.
        Specified by:
        getTargetedException in class IntegrationApiExceptionTranslationHandler
        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:
        convertExceptionToResourceMsg in class IntegrationApiExceptionTranslationHandler
        Parameters:
        exception - The exception that is being translated. Use its class name as key to get bundle resource