Class AbstractExceptionMessageFormatter
java.lang.Object
de.hybris.platform.webservicescommons.resolver.formatters.AbstractExceptionMessageFormatter
- Direct Known Subclasses:
ForwardExceptionMessageFormatter,GenericExceptionMessageFormatter
Abstract class for exception message formatters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringformatMessage(String extensionName, Exception exception, ErrorWsDTO errorWsDTO) Formats exception message.voidsetMessages(String extensionName, Exception exception, ErrorListWsDTO errorListWsDTO) Sets formatted messages byformatMessage(String, Exception, ErrorWsDTO)to each error in passed list.
-
Constructor Details
-
AbstractExceptionMessageFormatter
public AbstractExceptionMessageFormatter()
-
-
Method Details
-
setMessages
Sets formatted messages byformatMessage(String, Exception, ErrorWsDTO)to each error in passed list.- Parameters:
extensionName- extension nameexception- exception objecterrorListWsDTO- 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 nameexception- exception objecterrorWsDTO- webservices error object for which message is formatted- Returns:
- formatted message
-