Class GenericExceptionMessageFormatter

java.lang.Object
de.hybris.platform.webservicescommons.resolver.formatters.AbstractExceptionMessageFormatter
de.hybris.platform.webservicescommons.resolver.formatters.GenericExceptionMessageFormatter

public class GenericExceptionMessageFormatter extends AbstractExceptionMessageFormatter
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 Details

  • Constructor Details

    • GenericExceptionMessageFormatter

      public GenericExceptionMessageFormatter(FallbackConfigurationHelper fallbackConfigurationHelper)
      Creates a new generic message formatter with given fallback configuration helper.
      Parameters:
      fallbackConfigurationHelper - fallback configuration helper
  • Method Details