Class GenericExceptionMessageFormatter
java.lang.Object
de.hybris.platform.webservicescommons.resolver.formatters.AbstractExceptionMessageFormatter
de.hybris.platform.webservicescommons.resolver.formatters.GenericExceptionMessageFormatter
Exception message formatter which defines a message based on the configuration properties.
If the exception is present in the configuration then original message is forwarded like for ForwardExceptionMessageFormatter.
Otherwise generic message is returned as defined by configuration property.
If there is no configuration property defined then generic message defined in this class is returned.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericExceptionMessageFormatter(FallbackConfigurationHelper fallbackConfigurationHelper) Creates a new generic message formatter with given fallback configuration helper. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringformatMessage(String extensionName, Exception exception, ErrorWsDTO errorWsDTO) Formats exception message.protected FallbackConfigurationHelperMethods inherited from class de.hybris.platform.webservicescommons.resolver.formatters.AbstractExceptionMessageFormatter
setMessages
-
Field Details
-
DEFAULT_EXCEPTION_MESSAGE
- See Also:
-
-
Constructor Details
-
GenericExceptionMessageFormatter
Creates a new generic message formatter with given fallback configuration helper.- Parameters:
fallbackConfigurationHelper- fallback configuration helper
-
-
Method Details
-
formatMessage
Description copied from class:AbstractExceptionMessageFormatterFormats exception message.- Specified by:
formatMessagein classAbstractExceptionMessageFormatter- Parameters:
extensionName- extension nameexception- exception objecterrorWsDTO- webservices error object for which message is formatted- Returns:
- formatted message
-
getFallbackConfigurationHelper
-