Class AbstractExceptionMessageFormatter

    • Constructor Detail

      • AbstractExceptionMessageFormatter

        public AbstractExceptionMessageFormatter()
    • Method Detail

      • setMessages

        public void setMessages​(java.lang.String extensionName,
                                java.lang.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 java.lang.String formatMessage​(java.lang.String extensionName,
                                                          java.lang.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