Class ApiRegistryExceptionTranslationHandler

  • All Implemented Interfaces:
    com.hybris.cockpitng.service.ExceptionTranslationHandler, org.springframework.core.Ordered

    public class ApiRegistryExceptionTranslationHandler
    extends java.lang.Object
    implements com.hybris.cockpitng.service.ExceptionTranslationHandler, org.springframework.core.Ordered
    • Constructor Detail

      • ApiRegistryExceptionTranslationHandler

        public ApiRegistryExceptionTranslationHandler()
    • Method Detail

      • canHandle

        public boolean canHandle​(java.lang.Throwable throwable)
        Specified by:
        canHandle in interface com.hybris.cockpitng.service.ExceptionTranslationHandler
      • toString

        public java.lang.String toString​(java.lang.Throwable throwable)
        Specified by:
        toString in interface com.hybris.cockpitng.service.ExceptionTranslationHandler
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • isExceptionTypeSupported

        protected boolean isExceptionTypeSupported​(java.lang.Throwable throwable)
      • isModelRemoveException

        protected boolean isModelRemoveException​(java.lang.Throwable throwable)
      • isModelSaveException

        protected boolean isModelSaveException​(java.lang.Throwable throwable)
      • isModelExceptionTranslationSupported

        protected boolean isModelExceptionTranslationSupported​(java.lang.String exceptionMessage)
      • readConfiguredModels

        protected java.util.stream.Stream<java.lang.String> readConfiguredModels()