Class FixedErrorMessageFormatter

java.lang.Object
org.frankframework.errormessageformatters.ErrorMessageFormatter
org.frankframework.errormessageformatters.FixedErrorMessageFormatter
All Implemented Interfaces:
IErrorMessageFormatter, IScopeProvider
Direct Known Subclasses:
FixedErrorMessage

public class FixedErrorMessageFormatter extends ErrorMessageFormatter
ErrorMessageFormatter that returns a fixed message with replacements.
Since:
4.3
Author:
Peter Leeuwenburgh
  • Constructor Details

    • FixedErrorMessageFormatter

      public FixedErrorMessageFormatter()
  • Method Details

    • format

      public Message format(String errorMessage, Throwable t, INamedObject location, Message originalMessage, String messageId, long receivedTime)
      Description copied from class: ErrorMessageFormatter
      Format the available parameters into a XML-message. Override this method in descender-classes to obtain the required behaviour.
      Specified by:
      format in interface IErrorMessageFormatter
      Overrides:
      format in class ErrorMessageFormatter
    • setReturnString

      public void setReturnString(String string)
      returned message
    • setFilename

      public void setFilename(String filename)
      name of the file containing the result message
    • setReplaceFrom

      public void setReplaceFrom(String replaceFrom)
    • setReplaceTo

      public void setReplaceTo(String replaceTo)
    • setStyleSheetName

      public void setStyleSheetName(String styleSheetName)
    • getFilename

      public String getFilename()
    • getReturnString

      public String getReturnString()
    • getReplaceFrom

      public String getReplaceFrom()
    • getReplaceTo

      public String getReplaceTo()
    • getStyleSheetName

      public String getStyleSheetName()