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