Class AbstractExceptionMessageFormatter

java.lang.Object
de.hybris.platform.webservicescommons.resolver.formatters.AbstractExceptionMessageFormatter
Direct Known Subclasses:
ForwardExceptionMessageFormatter, GenericExceptionMessageFormatter

public abstract class AbstractExceptionMessageFormatter extends Object
Abstract class for exception message formatters.
  • Constructor Details

    • AbstractExceptionMessageFormatter

      public AbstractExceptionMessageFormatter()
  • Method Details

    • setMessages

      public void setMessages(String extensionName, Exception exception, ErrorListWsDTO errorListWsDTO)
      Sets formatted messages by formatMessage(String, Exception, ErrorWsDTO) to each error in passed list.
      Parameters:
      extensionName - extension name
      exception - exception object
      errorListWsDTO - list of webservices errors for which message is formatted and set
    • formatMessage

      protected abstract String formatMessage(String extensionName, Exception exception, ErrorWsDTO errorWsDTO)
      Formats exception message.
      Parameters:
      extensionName - extension name
      exception - exception object
      errorWsDTO - webservices error object for which message is formatted
      Returns:
      formatted message