Class IntegrationBackofficeExceptionTranslationHandler
java.lang.Object
de.hybris.platform.integrationbackoffice.exceptionhandlers.IntegrationApiExceptionTranslationHandler
de.hybris.platform.integrationbackoffice.exceptionhandlers.IntegrationBackofficeExceptionTranslationHandler
- All Implemented Interfaces:
com.hybris.cockpitng.service.ExceptionTranslationHandler,org.springframework.core.Ordered
public class IntegrationBackofficeExceptionTranslationHandler
extends IntegrationApiExceptionTranslationHandler
A class for translating target exceptions to localized error messages for integration backoffice.
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertExceptionToResourceMsg(Throwable exception) Deprecated, for removal: This API element is subject to removal in a future version.increases visibility of the base class method and therefore is deprecated for removal.protected StringRetrieves prefix of all property keys in the resource bundle used by this extension/handler.protected final Collection<Class<? extends Throwable>>Methods inherited from class de.hybris.platform.integrationbackoffice.exceptionhandlers.IntegrationApiExceptionTranslationHandler
canHandle, extractParameters, getOrder, setLocalizationService, toString
-
Constructor Details
-
IntegrationBackofficeExceptionTranslationHandler
public IntegrationBackofficeExceptionTranslationHandler()
-
-
Method Details
-
getTargetedExceptions
- Specified by:
getTargetedExceptionsin classIntegrationApiExceptionTranslationHandler
-
getKeyPrefix
Description copied from class:IntegrationApiExceptionTranslationHandlerRetrieves prefix of all property keys in the resource bundle used by this extension/handler. All localization keys should start with this prefix, then followed by"."and further key specification.- Specified by:
getKeyPrefixin classIntegrationApiExceptionTranslationHandler- Returns:
- a prefix to be used for localization property keys in the resource bundle.
-
convertExceptionToResourceMsg
@Deprecated(since="2205", forRemoval=true) public String convertExceptionToResourceMsg(Throwable exception) Deprecated, for removal: This API element is subject to removal in a future version.increases visibility of the base class method and therefore is deprecated for removal. This method is an implementation detail and should not be used. UseIntegrationApiExceptionTranslationHandler.toString(Throwable)instead.Try to get bundle resource with the information of the exception that is being handled.- Overrides:
convertExceptionToResourceMsgin classIntegrationApiExceptionTranslationHandler- Parameters:
exception- The exception that is being translated. Use its class name or other information as key to get bundle resource
-